View Single Post
Old 02-21-2005, 01:31 AM   #7 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,712
redhead is on a distinguished road
are you connecting to the database befor issuing the select statement ?
ie:
PHP Code:
$db mysql_connect("$server""$user""$password") or die("Invalid server or user."); 
mysql_select_db("your_database"$db); 
$result mysql_query("select * from members order by posts desc limit 10"$db); 
You might have forgotten the $db as the second argument to mysql_query()
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote