Ranks table

This forum is now closed as part of retiring phpBB2.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
VorowneTSG
Registered User
Posts: 257
Joined: Mon Sep 09, 2002 4:33 pm
Contact:

Ranks table

Post by VorowneTSG » Mon Sep 30, 2002 5:13 pm

How do I pull the rank_id field from the ranks table so I can use it in a php file? I'm not very familiar with accessing the databases.

Any help would be much appreciated,
Thanks.

User avatar
morpheus2matrix
Former Team Member
Posts: 9171
Joined: Wed Apr 10, 2002 7:31 pm
Location: France
Contact:

Post by morpheus2matrix » Mon Sep 30, 2002 5:51 pm

i think you're not in the good forum :wink:

For your problem, you could tried this, maybe this will work :

Code: Select all

$sql = "SELECT rank_id
	FROM " . RANKS_TABLE . "
	ORDER BY rank_special, rank_min";
if ( !($result = $db->sql_query($sql)) )
{
	message_die(GENERAL_ERROR, "Could not obtain rank_id information.", '', __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result) )
{
	$rank_id = $row['rank_id'];
}
Former phpBB MOD-Team Member -

Forgive my bad English :(

No support by PM/Email - Thanks - You can thanks me here :) - Pay me for installing MOD's :lol:

Post Reply

Return to “[2.0.x] MOD Writers Discussion”