|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-02 18:28 UTC] dzyszla at dzyszla dot aplus dot pl
[2008-10-02 19:50 UTC] dzyszla at dzyszla dot aplus dot pl
[2008-10-26 17:49 UTC] felipe@php.net
[2008-10-27 19:12 UTC] dzyszla at dzyszla dot aplus dot pl
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 19:00:01 2025 UTC |
Description: ------------ My webserver provider changed the mysqli module to the newest version (I don't wont, what number). And my code with mysqli_stmt_bind_param dosen't work correctly, but i get no error message (by mysqli_stmt_error after each command too). I do something wrong? Reproduce code: --------------- $stmt=mysqli_stmt_init($sql); if(mysqli_stmt_prepare($stmt,'SELECT COUNT(*) FROM posts WHERE `parent`=?')) { $parent=1; if (mysqli_stmt_bind_param($stmt,'i',$parent)) echo 'OK'; else echo 'FALSE'; if (mysqli_stmt_bind_result($stmt,$enters)) echo 'OK'; else echo 'FALSE'; if(mysqli_stmt_execute($stmt)) echo 'OK'; else echo 'FALSE'; if (mysqli_stmt_fetch($stmt)) echo 'OK'; else echo 'FALSE'; echo $enters; } mysqli_stmt_close($stmt); Expected result: ---------------- OKOKOKOK0 Actual result: -------------- OKOKOKOK161