Jump to content

Whats wrong with this code?


duncan_cowan

Recommended Posts

Hi please could someone tell me what is wrong with this code:

<?phpinclude("db_connect.php");$query = mysql_query("SELECT * FROM armies WHERE username=".$_SESSION['username']."");while($row = mysql_fetch_array($query))  {  }?>

When i run it it says:"Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/i04wasp/public_html/protected/armyhome.php on line 10"Thankyou...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...