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 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'. 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. Link to comment https://forums.phpfreaks.com/topic/66379-selection-problem-with-table/#findComment-332206 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.