php programming help changing background based on location in a game?

January 9, 2011 – 11:12 am

Ok heres what i got, a script that keeps track of a city that the player is located in, now i want to know what i need to make the variable change the background according to what number the database brings back. It has to be completely php based, that will change the background if i can make the variable something like $variable and how to make the php/css reflect the background according to what number that variable is, im using dreamweaver if that helps answering this.

Related posts:

  1. How do I create my own java based video game?
  2. In php, need the background image to check for a variable and load accordingly?
  3. How can move php echo script or display to an specific location in the browser page?
  4. How do you script(php) for a simple pet game?
  5. How do you make a text based game out of Ruby(computer program)?
  6. How to go from a level to a nother in a java applet game?
  7. How do I make a pages background image change according to time in PHP?
  8. How to run a python based game under Kubuntu?
  9. How to run a python based game under Kubuntu?
  10. Is there a php based script that will automatically translate a website according to the visitors IP?
  1. One Response to “php programming help changing background based on location in a game?”

  2. <?php

    //Get the variable….

    echo ‘<body style="background: url(\’/images/’.$variable.’.jpg\’);">’;

    By StupidShep on Jan 9, 2011

Sorry, comments for this entry are closed at this time.