Problem with MySQL and PHP
This is the code in PHP:
<?php $link = mysql_query("SELECT avatar FROM games WHERE id = 1");
The point is, echo $link in this case makes it so important: Resource id #17.
There's no such thing in my OBD.
And when I write to PHPMyAdmin SQL the same line, it gives me the right meaning.
It's probably PHP.
I hooked up with the BDE. I'm right, so the code is:
mysql_select_db("*******") or die(mysql_error());
irl last edited by
You've got a PHP that's totally right. It's a result descriptor. http://php.net/manual/ru/function.mysql-query.php which should be transferred to a different function that will be processed. These functions are also mentioned in the reference documents.
P. S.To work with MySQL, I strongly advise that the use of one-name extension PHP be eliminated. Starting with version 5.5, it has been officially declared obsolete and is not guaranteed in subsequent versions. Use MySQLi or PDO.