Jump to content

does my database query look correct please cheers..


redarrow

Recommended Posts

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());

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.