Jump to content

Please help


errietta

Recommended Posts

Hello this is my code

$sql9="SELECT * FROM `tinyclub_users` WHERE `user_name`='$n'";$result9=mysql_query($sql9);$row9=mysql_fetch_array($result9);$pos9=$row9['user_position'];if ($pos9==1){echo "You have beaten a tournament!";exit;}

I have tried to echo $pos9; but it doesn't work at all! It's nullI echoed $sql9; and the output works in phpmyadmini have also tried

$sql9="SELECT * FROM `tinyclub_users` WHERE `user_name`='$n'";$result9=mysql_query($sql9);while ($row9=mysql_fetch_array($result9)){$pos9=$row9['user_position'];}if ($pos9==1){echo "You have beaten a tournament!";exit;}

It just wont workPlease help me

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...