I have a table in the database, there is one field token
I get a token to the input and I have to compare it with the token that is in the database.
But the comparison for some reason, no, the answer from the server is the following: Result of strcmp (asda, 1) is 1
$token = $_GET["token"]; $stmt = $pdo->prepare("SELECT token FROM Tokens WHERE token =? LIMIT 1")->execute(array($token)); echo("Result of strcmp ($token , $stmt) is "); echo(strcmp ($token, $stmt)); if($stmt == $token ){
execute - Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки........ backtrue, tobish1- Alexey Shimanskyfetch()or somenumRows()was lost somewhere - ArchDemon