I’m trying to mastery php by reading book, and i’m stuck on this code :
$title_db_query = "SELECT zagolovok FROM Title WHERE id = 5";
$title_query = mysql_query ($title_db_query);
while($row_title = mysql_fetch_array($title_query))
{
echo $row_title['zagolovok'];
}
This code supposed to print data from ‘zagolovok’, but instead it gives nothing. I tried to use var_dump($title_query) and it says bool(false).
I have connection to db, because other queries are work fine.
Try adding or die(mysql_error()) to query and see what happens