$playerhp = mysql_query("SELECT hp FROM member WHERE user = '".$_SESSION['username']."'");
echo "hp:".$playerhp;
this might very well be the most stupid question ever asked on this board but im trying this for hours now and cant find a solution...
what i want to do is to define the variable $playerhp as the number from my database so that i can later work on with it but in the curent state im not getting back anything (the eco was just to test what $playerhp is at the moment) all the guides i fund would now go on with something like $row and building an array but what would i need an array for when i just get a single number right?!
PS: when i add mysql_fetch_assoc or mysql_fetch_array i get the error message: mysql_fetch_array() expects parameter 1 to be resource, boolean given in so my mistake must be somwhere before that point...