PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Isn't the 'i' required so that it knows that I'm passing an integer?
This is the error I get
Fatal error: Call to a member function bind_param() on a non-object in /var/www/vhosts/domain.co.uk/subdomains/projects/httpdocs/imageViewer/limit.php on line 16
So it looks like it's failing on the statement creation?
I am thinking that perhaps you cannot do limits with params?
$stmt = mysqli_prepare($link, "SELECT `id` FROM `proofImages` WHERE `clientId` = 1 LIMIT ?");
mysqli_stmt_bind_param($stmt, 's', $limit);
What confused me was the two styles of connection namely:Procedural style and OO style, and the ways the prepare(function) were used are different!!!! Anyways this is interesting, tell me if you get it right, check this php.net resource http://us2.php.net/mysqli_stmt_bind_param