Jump to content

[SOLVED] SOLVED: Code not working


sp@rky13

Recommended Posts

Here's my code:

 

<?php
$con = mysql_connect("****","***","****");
if (!$con)
{
   die('Could not connect: ' . mysql_error());
}

mysql_select_db("******", $con);
$result = mysql_query("SELECT * FROM village9
JOIN player9
ON village9.player = player9.id WHERE player9.name = 'gianni23';") or die(mysql_error());
if($row = mysql_fetch_array($result))
{
echo $row['x']."|".$row['y']." "; 
}
mysql_close($con);
?>

 

It returns only one results instead of about 500. Why is that?

Note: I would have posted this in the mysql section but no one replies there so there's no point, sorry

Link to comment
https://forums.phpfreaks.com/topic/181454-solved-solved-code-not-working/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.