Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 606
0 Users 6 Guests Online
Forum Index » PHP + MySQL » gather this!
Posted on Sunday 13th May 2007 at 05:20 PM
gbt91
templates/default/images/noavatar.png's Avatar
Junior Member
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
Posted on Sunday 13th May 2007 at 09:11 PM
SkillMaster
templates/default/images/noavatar.png's Avatar
Senior Member
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
templates/default/images/noavatar.png's Avatar
Senior Member
Did it work?