lordphate Posted October 21, 2007 Share Posted October 21, 2007 Okay here's what i'm trying to do.. [code=php:0] function ranks($username){ $mysql = @mysql_connect("*","*","*",1) or die('Cannot Connect to $mysql'. mysql_error()); $db = @mysql_select_db("*",$mysql)or die(mysql_error()); $sql_query = "SELECT user_rank FROM phpbb_users WHERE username='".$username."'"; $rank = mysql_query($sql_query) or die('Cannot Get $rank'. mysql_error()); // $rank = extract_option("ranks",$rank); return $rank; }//ranks [/code] http://www.tradeprofessional.net/index.php?handler=search&action=perform&search_type=members&fname=&lname=&email=&handshakes=0&distance=0&country=223&state=3435&city=124807 This is what its doing the "Resource ID's" Link to comment https://forums.phpfreaks.com/topic/74250-resource-id-s/ Share on other sites More sharing options...
trq Posted October 21, 2007 Share Posted October 21, 2007 Hard to find a question in your post but mysql_query() returns a result resource. Maybe thats your issue? What does extract_option() do? Link to comment https://forums.phpfreaks.com/topic/74250-resource-id-s/#findComment-375083 Share on other sites More sharing options...
Barand Posted October 21, 2007 Share Posted October 21, 2007 Hard to find a question in your post Hard!. It's impossible. Link to comment https://forums.phpfreaks.com/topic/74250-resource-id-s/#findComment-375085 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.