Jackthumper Posted November 22, 2010 Share Posted November 22, 2010 @$pet = mysql_fetch_array(mysql_query("SELECT * FROM pets)); Link to comment https://forums.phpfreaks.com/topic/219488-please-help-me-with-this-code/ Share on other sites More sharing options...
jim_keller Posted November 22, 2010 Share Posted November 22, 2010 It's probably best to describe your problem in more detail, but my first guess is that the @ sign shouldn't go before the variable name. if you really need to use it (you probably don't), put it before @mysql_fetch_array(). Link to comment https://forums.phpfreaks.com/topic/219488-please-help-me-with-this-code/#findComment-1138032 Share on other sites More sharing options...
Jackthumper Posted November 22, 2010 Author Share Posted November 22, 2010 it show my "Array". Link to comment https://forums.phpfreaks.com/topic/219488-please-help-me-with-this-code/#findComment-1138035 Share on other sites More sharing options...
Pikachu2000 Posted November 22, 2010 Share Posted November 22, 2010 Some context would be helpful. Link to comment https://forums.phpfreaks.com/topic/219488-please-help-me-with-this-code/#findComment-1138038 Share on other sites More sharing options...
Jackthumper Posted November 22, 2010 Author Share Posted November 22, 2010 heres the page http://toxicpets.co.uk/search.php it just dosent get the stuff from the database Link to comment https://forums.phpfreaks.com/topic/219488-please-help-me-with-this-code/#findComment-1138042 Share on other sites More sharing options...
litebearer Posted November 22, 2010 Share Posted November 22, 2010 As a simple test, try changing this @$pet = mysql_fetch_array(mysql_query("SELECT * FROM pets)); to this $query ="SELECT * FROM pets"; $result = mysql_query($query); while($row = mysql_fetch_array($result)) { echo $row[0] . " - " . $row[1] . "<br>"; } Link to comment https://forums.phpfreaks.com/topic/219488-please-help-me-with-this-code/#findComment-1138062 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.