thefreebielife Posted August 23, 2007 Share Posted August 23, 2007 <?php //select the table $result = mysql_query("select * from gifts order by gId WHERE gsite='cash'"); $i = 1; //grab all the content while($r=mysql_fetch_array($result)) ?> This code displays nothing. What am i doing wrong? I assume it has to be with the "where", but can't figure it out. Thanks, Jared Link to comment https://forums.phpfreaks.com/topic/66306-selection-problem/ Share on other sites More sharing options...
beboo002 Posted August 23, 2007 Share Posted August 23, 2007 place orderby clause after where clause Link to comment https://forums.phpfreaks.com/topic/66306-selection-problem/#findComment-331696 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.