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 Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/66306-selection-problem/#findComment-331696 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.