gather this!

Posted on Sunday 13th May 2007 at 05:20 PM
gbt91
gbt91's Avatar
if i want to gather users with a determinate value as, if i want to gather all users which age is 13 years old, how can i do that?
help needed as soon as possible
That's Just The Drill
Posted on Sunday 13th May 2007 at 09:11 PM
SkillMaster
SkillMaster's Avatar
Code
$sql = mysql_query("SELECT * FROM `DB_NAME` WHERE `age` = '13' ORDER BY `id` DESC");
while($fetch = mysql_fetch_array($sql))
{
echo ("$fetch[username]");
}

That should work.
Posted on Tuesday 15th May 2007 at 05:38 AM
SkillMaster
SkillMaster's Avatar
Did it work?
Login or register to respond to this forum topic.