
May 15th, 2012, 05:52 PM
|
 |
Code Monkey V. 0.9
|
|
Join Date: Mar 2005
Location: A Land Down Under
|
|
Then echo out the query, and run that directly against your DB, using something like phpMyAdmin or whatever other DB management tool you have.
PHP Code:
$query = "SELECT * FROM answers WHERE qid ='$qid'";
echo "<p>".$query."</p>";
$result = mysql_query($query);
That will tell you the results from that query. The most likely cause of this is that there is only one answer in your DB for that question ID.
|