if($selectteam) {
$db = mysql_connect("localhost", "root"
mysql_select_db("teams",$db);
$title = mysql_query("SELECT name FROM teams WHERE id='$selectteam'",$db);
$tag = mysql_query("SELECT tag FROM teams WHERE id='$selectteam'",$db);
echo $tag;
This is the code I am using, I have looked it over a thousand times, and have had other programmers check it out too. The problem here is it returns $title as "Resource id #2" while returning $tag as "Resource id#3". Shouldn't this return the actual values of the cells, not the id numbers for them?
This has been bugging me for a long time, if anyone can, please help!
$db = mysql_connect("localhost", "root"
mysql_select_db("teams",$db);
$title = mysql_query("SELECT name FROM teams WHERE id='$selectteam'",$db);
$tag = mysql_query("SELECT tag FROM teams WHERE id='$selectteam'",$db);
echo $tag;
This is the code I am using, I have looked it over a thousand times, and have had other programmers check it out too. The problem here is it returns $title as "Resource id #2" while returning $tag as "Resource id#3". Shouldn't this return the actual values of the cells, not the id numbers for them?
This has been bugging me for a long time, if anyone can, please help!