Guest Anonymous Posted February 5, 2008 Posted February 5, 2008 Re: Monorail $eon = mysql_fetch_object(mysql_query("SELECT * FROM cities WHERE cityid = ".$r['location']."")); echo "".$eon->cityname.""; Should work. Quote
carlg Posted February 7, 2008 Author Posted February 7, 2008 Re: Monorail no i have tryed that lol but ty for your help Quote
_Eagle Posted February 7, 2008 Posted February 7, 2008 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. Quote
carlg Posted February 7, 2008 Author Posted February 7, 2008 Re: Monorail yes i have tryed this to please note that i am useing v2 codes Quote
YoungGold Posted February 7, 2008 Posted February 7, 2008 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... Quote
carlg Posted February 7, 2008 Author Posted February 7, 2008 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 Quote
YoungGold Posted February 7, 2008 Posted February 7, 2008 Re: Monorail print " [b]You are currently in: $ir['cityname'][b]"; try this Quote
carlg Posted February 7, 2008 Author Posted February 7, 2008 Re: Monorail print " [b]You are currently in: $ir['cityname'][b]"; try this nope nothing Quote
fbiss Posted February 8, 2008 Posted February 8, 2008 Re: Monorail This should work for ya $eon = mysql_fetch_array($db->query("SELECT * FROM cities WHERE cityid = '{$ir['location']}'")); echo "{$eon['cityname']}"; Quote
carlg Posted February 8, 2008 Author Posted February 8, 2008 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.