Jump to content
MakeWebGames

Table Returns single result


Jake

Recommended Posts

		print "
[url='javascript: history.go(-1)']Here Are all the current wars. Now, what else do you wish to discuss?[/url]
";
print "
[b]Attacker
[b]Defender
[b]Length
{$war['Name1']} {$war['Name2']} {$war['DaysOld']} Days

 

I know its messy and stuff, but still... Why is this only printing one result? There should be 3 results.

Link to comment
Share on other sites

Re: Table Returns single result

 

	$w=mysql_query("SELECT * FROM Wars", $c);
$war=mysql_fetch_array($w);
$wan=mysql_num_rows($w);
	if($wan==0)
	{
	print "<center>There Are Currently No Wars, Sire.

[url='javascript: history.go(-1)']Back[/url]";
	}
	else
	{	

 

Then i have the table shown above.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...