Jump to content
MakeWebGames

Recommended Posts

Posted

Re: Change Explore to City Name...

I think you mean you want it to say the city name they are in when they click explore?

If so..

 

$city=mysql_fetch_object(mysql_query("SELECT cityname FROM cities WHERE cityid = ".$ir['location']." "));

 

to display it you use...

 

$name->cityname
Posted

Re: Change Explore to City Name...

same code......

 

$city=mysql_fetch_object(mysql_query("SELECT cityname FROM cities WHERE cityid = ".$ir['location']." "));

[url='explore.php']$city->cityname[/url]

 

No thats not 100% right......you will have to make sure you don't put the query in an echo or print...but I really hope you know that much...

Posted

Re: Change Explore to City Name...

 

same code......

 

$city=mysql_fetch_object(mysql_query("SELECT cityname FROM cities WHERE cityid = ".$ir['location']." "));

[url='explore.php']$city->cityname[/url]

 

No thats not 100% right......you will have to make sure you don't put the query in an echo or print...but I really hope you know that much...

OK cool ill try it :-D

thanx

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