Jump to content

Query Not Getting Info


savagenoob

Recommended Posts

For some odd reason, my MySQL array is not returning any data. I echo'd the query and it is correct, I looked at the database and that row is in there, but when I print_r the array, nothing. Here is the code.

 

$infoquery = "SELECT * FROM '$endotype' WHERE ID = '$typeid' ORDER BY ID DESC LIMIT 1";
$info = mysql_query($infoquery);
echo $infoquery;
$infoout = mysql_fetch_array($info);
print_r($infoout);

Its a very simple query and its driving me nuts.

Link to comment
https://forums.phpfreaks.com/topic/221657-query-not-getting-info/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.