Zero-Affect Posted December 20, 2008 Posted December 20, 2008 Re: [mccode] Cityname in Mainmenu not many people used it till i started... :roll: whatever mate! do your own research guys.... Quote
AlabamaHit Posted December 20, 2008 Author Posted December 20, 2008 Re: [mccode] Cityname in Mainmenu pretty sure nyna was who showed alot of people it...she was the First I saw use it and Talk about it. Quote
Agon Posted June 12, 2009 Posted June 12, 2009 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. Quote
AlabamaHit Posted June 12, 2009 Author Posted June 12, 2009 Re: [mccode] Cityname in Mainmenu Use an array, and you will get what you are looking for :) Quote
Agon Posted June 12, 2009 Posted June 12, 2009 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. Quote
CrazyT Posted June 12, 2009 Posted June 12, 2009 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. Quote
Agon Posted June 12, 2009 Posted June 12, 2009 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. Quote
CrazyT Posted June 12, 2009 Posted June 12, 2009 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.. 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.