List box + MySQL ?
Posted: Tue Mar 03, 2009 1:34 pm
Hello again everyone.
I'm doing some basic php and MySQL and once more need a small hand. I've never tried list boxes with MySQL so this is something completely new to me.
Anyway, I have created a table with the following fields:
Service 1
Service 2
Service 3
Currently there is no value for any of the tables, as I want this to be controlled by a HTML list box. The options of the list box would be "Online" and "Offline". I have a PHP page created and linked up with the database, I just need help with the code so that once the list box is changed and the user clicks the "ok" button, the value for say Service 1 changes?
Any pointers? Thanks guys.
I'm doing some basic php and MySQL and once more need a small hand. I've never tried list boxes with MySQL so this is something completely new to me.
Anyway, I have created a table with the following fields:
Service 1
Service 2
Service 3
Currently there is no value for any of the tables, as I want this to be controlled by a HTML list box. The options of the list box would be "Online" and "Offline". I have a PHP page created and linked up with the database, I just need help with the code so that once the list box is changed and the user clicks the "ok" button, the value for say Service 1 changes?
Any pointers? Thanks guys.