Jump to content

Taking the option values out of PHP into MySql.


jimdidr

Recommended Posts

this is probably pretty simple for you guys but,

I want to put my option values into the MySql database insted of keeping them in the "whatever.php"

 

if lets say the values are

 

One

Two

Three

 

What would the MySql database look like?

 

CREATE TABLE `towns` (

?? ??

 

and what would the fetch code be?

<select id="town" name="town" size="1">

{What do i put in here insted of "<option value="one">first</option>" and so on... }

</select>

 

 

Thank you now that i know what its called maby i will find a tutorial... I'm pretty green but I just cant learn without doing, its my learning dissability,

 

(if i just read the info it leaves my head as fast as you can say "chee...")

Welcome to the real world.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.