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" Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.