Jump to content
MakeWebGames

Recommended Posts

  • 5 months later...
Posted

Re: [mccode] Cityname in Mainmenu

This idea is simple yet wonderful. It adds that custom touch the players enjoy.

Now I'm trying to decipher how to make it fetch a different explore.php for each city.

I'll post once I figure it out.

Posted

Re: [mccode] Cityname in Mainmenu

Something like this maybe:

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

 

$r=mysql_fetch_array($d);

if($r['location'] = 1)

print"

$city->cityname

"

else if($r['location'] = 2)

print "

$city->cityname

"

 

I'm close, my brain has almost got it. Learning here, doing my best.

Posted

Re: [mccode] Cityname in Mainmenu

I prefer to use *mysql_fetch_object faster to write than mysql_fetch_assoc and mysql_fetch_array for example..

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Is faster to write than:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: [mccode] Cityname in Mainmenu

What I'm trying to do is have a different city name fetch a different link.

for example city1 goes to explore.php and city2 goes to explore2.php

It's in my head somwhere, I'll figure it out.

Posted

Re: [mccode] Cityname in Mainmenu

 

What I'm trying to do is have a different city name fetch a different link.

for example city1 goes to explore.php and city2 goes to explore2.php

It's in my head somwhere, I'll figure it out.

Then just do like..

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Then that will include the explore page to what city your in..

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