Help creating a php code
Posted: Fri Sep 12, 2008 2:15 pm
Ok heres basically what I want to do. I want to update a specific image. basically I want to in my admin panel that I have, have a drop down box. and in that drop down box there are 5 things. Level 1,Level 2,Level 3,Level 4,Level 5.
Basically this.
<option>Level 1</option>
<option>Level 2</option>
<option>Level 3</option>
<option>Level 4</option>
<option>Level 5</option>
then what I want it to do is on the main page, (i.e. index.php)
I want it to change to the picture thats assigned to that option. Basicaly there a small graphic thats in a specific area (whever its placed) and when the option is updated in the admin panel it changes to the assigned picuture.
example of assigned pic
<option>Level 1</option> level1.png
<option>Level 2</option> level2.png
<option>Level 3</option> level3.png
<option>Level 4</option> level4.png
<option>Level 5</option> level5.png
and of course it would haev to be related to a mysql field and the table row would be called
slvl
Basically this.
<option>Level 1</option>
<option>Level 2</option>
<option>Level 3</option>
<option>Level 4</option>
<option>Level 5</option>
then what I want it to do is on the main page, (i.e. index.php)
I want it to change to the picture thats assigned to that option. Basicaly there a small graphic thats in a specific area (whever its placed) and when the option is updated in the admin panel it changes to the assigned picuture.
example of assigned pic
<option>Level 1</option> level1.png
<option>Level 2</option> level2.png
<option>Level 3</option> level3.png
<option>Level 4</option> level4.png
<option>Level 5</option> level5.png
and of course it would haev to be related to a mysql field and the table row would be called
slvl