help please i am trying to add an order by member_id desc to the following
$sql = "select * from members where username=" . $this->db->escape($username);
can you help thanks
Page 1 of 1
mysql order by
#2
Posted 06 August 2009 - 11:28 AM
I think the syntax you'll be needing is something like this:
$sql = "select * from members where username= '".$this->db->escape($username)."' ORDER BY member_id DESC";
$sql = "select * from members where username= '".$this->db->escape($username)."' ORDER BY member_id DESC";
- ← Problems with Contact Form
- Server Side (PHP, Databases, ASP.NET, etc)
- Help with YouTube API PHP Script →
Share this topic:
Page 1 of 1
Help

















