newttster Posted March 29, 2012 Share Posted March 29, 2012 Firstly, I apologize if this is posted in the wrong area. I am drawing a complete blank on how to do this. I have googled it and I have looked through the threads here as well. I am probably using the wrong search for what I need. How do you make something specific to a certain location? For example if you wanted the Roulette game to be in one particular city and no other. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted March 29, 2012 Share Posted March 29, 2012 $ir['cityid'] Quote Link to comment Share on other sites More sharing options...
newttster Posted March 29, 2012 Author Share Posted March 29, 2012 So if I follow that correctly; if($ir['location']==2) { echo"<a href='roulette.php'> Roulette</a><br />"; } else { echo"You cannot play Roulette in this city.<br /> <a href='explore.php'>Back</a><br />"; } Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted March 29, 2012 Share Posted March 29, 2012 Im sure i put both in my post as you could just make it city specific but location works too....forum muncher lol Quote Link to comment Share on other sites More sharing options...
newttster Posted March 29, 2012 Author Share Posted March 29, 2012 Thank you both for your input on this. Appreciate it so much. You ever had one of those days when all you do is bang your head against a wall and nothing shakes out. It's one of those "scripting" days for me. Thanks again. Quote Link to comment Share on other sites More sharing options...
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.