Jump to content

file_get_contents --> syntax issue


RON_ron

Recommended Posts

$place is not giving the expected output. I'm sure the issue is with the syntax? Could someone help me on this?

 

$query = "SELECT * FROM db1 LEFT OUTER JOIN db2 ON db1.user = db2.User ORDER BY db1 user DESC";

$results = mysql_query($query);

 

while($line = mysql_fetch_array($results)) {

echo $line["user"];

echo $line["ip"];

$country = $line["ip"];

$place = file_get_contents('http://api.hostip.info/country.php?ip="$country"');

echo $place;

}

Link to comment
https://forums.phpfreaks.com/topic/268077-file_get_contents-syntax-issue/
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.