I am trying to echo the held text in the "Title" field where the id has a fixed value of 1, but i am getting the following error:
supplied argument is not a valid MySQL result resource in C:\wamp\www\index.php on line 46
your help would be greatly appreciated.
the php code that i am using is:
<?php $sql_query = "SELECT 'id', 'Title' FROM 'indexinfo' WHERE 'id' = '1'"; //store the queried cell in the variable //named $result $result = mysql_query($sql_query); //display the queried cell $row = mysql_fetch_array($result); // line 46 echo ($row['Title']); ?>