thefreebielife Posted August 23, 2007 Share Posted August 23, 2007 <?php else $sql="select * from users where site=Cash order by uId"; } $result = mysql_query($sql) or die(mysql_error()); $i = 0; //grab all the content while($r=mysql_fetch_array($result)) { ?> That code displays nothing, I assume there is a problem with the "where" because i get this error "Unknown column 'Cash' in 'where clause'" Thanks, Jared Quote Link to comment https://forums.phpfreaks.com/topic/66379-selection-problem-with-table/ Share on other sites More sharing options...
Jessica Posted August 23, 2007 Share Posted August 23, 2007 You need to put quotes around a string. site='Cash'. Quote Link to comment https://forums.phpfreaks.com/topic/66379-selection-problem-with-table/#findComment-332193 Share on other sites More sharing options...
thefreebielife Posted August 23, 2007 Author Share Posted August 23, 2007 Now it doesn't display the error, but it doesn't display the info as well. Quote Link to comment https://forums.phpfreaks.com/topic/66379-selection-problem-with-table/#findComment-332206 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.