redarrow Posted December 11, 2008 Share Posted December 11, 2008 advance thank you. <?php $result = mysql_query("SELECT * FROM users where id='id' AND ORDER BY id "); ?> Quote Link to comment Share on other sites More sharing options...
trq Posted December 11, 2008 Share Posted December 11, 2008 We wouldn't have a clue. Do you have a field called id that holds a value of id[/]? Quote Link to comment Share on other sites More sharing options...
redarrow Posted December 11, 2008 Author Share Posted December 11, 2008 Just want to no how to use the order by with a id='$id' please and thank you. database users. id name $res="select * from users where id='$id' order by id"; $res_result=mysql_query($res)or die(mysql_error()); Does it look correct trying to learn the order by and id='$id' Also this trying to learn. $res="select id , name, from users where id='$id' FIRST(order by id) group by name"; $res_result=mysql_query($res)or die(mysql_error()); Quote Link to comment Share on other sites More sharing options...
blueman378 Posted December 11, 2008 Share Posted December 11, 2008 take out the AND Quote Link to comment 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.