Jump to content
MakeWebGames

Recommended Posts

Guest Anonymous
Posted

Re: Monorail

$eon = mysql_fetch_object(mysql_query("SELECT * FROM cities WHERE cityid = ".$r['location'].""));

echo "".$eon->cityname."";

Should work.

Posted

Re: Monorail

 

$eon = mysql_fetch_object(mysql_query("SELECT * FROM cities WHERE cityid = ".$r['location'].""));

echo "".$eon->cityname."";

Should work.

try changing the $r['location'] to $ir['location']. Should function fine then.

Posted

Re: Monorail

 

print " You are currently in: $ir['location']";

 

think that is right lol aint coded in a while and no-where to test as of this moment...

 

 

 

yer this was my first ider and all that comes up is the id of the city and not the name

Posted

Re: Monorail

This should work for ya

 

$eon = mysql_fetch_array($db->query("SELECT * FROM cities WHERE cityid = '{$ir['location']}'"));
echo "{$eon['cityname']}";
Posted

Re: Monorail

 

This should work for ya

 

$eon = mysql_fetch_array($db->query("SELECT * FROM cities WHERE cityid = '{$ir['location']}'"));
echo "{$eon['cityname']}";

 

 

ty that worked ty

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...