Php m

Hey,

I’ve been running into an error with php and mysql and I don’t know why…

Code:

$statement = $connection->prepare(“SELECT online.lastip,online.timestamp FROM online WHERE online.license=?”);
if (!$statement) {
die (“Failed:1” . $connection->error);
}

What’s the problem here?
Thanks in advance!

What is $connection, and does your code print or log any error? If there’s nothing visible on the screen, have a dig into your server’s logs to see if anything appears in there.

Sponsor our Newsletter | Privacy Policy | Terms of Service