mysqli - php - mysqli_stmnt::get_result equivalent -


i developing internet site, using php 5.3, , mysql database.

when using database, after lines such as:

...

  $stmnt = $mysqli->prepare("select id users loginid = ?");     $stmnt->bind_param('i', $x);     $stmnt->execute();     $result = $stmnt->get_result(); 

is there equivalent command : $stmnt->get_result();

this because using phplint (http://www.icosaedro.it/phplint/phplint-on-line.html) , compilation error : error: method mysqli_stmt::get_result() not exist

some workarround leads conclusion server doesn't support $stmnt->get_result() (otherwise, don't know why code cannot compiled).

is there equivalent $stmnt->get_result()?

thanks :)

possibly

$stmt->fetch(); 

or

$result = $result->fetch_assoc(); 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

java - Using an Integer ArrayList in Android -