Tehy
Oct 13th 2007, 12:59 am
I have mySQL database called phones and I have created table
+-----------+-------+-------+
| Phone |design | weight|
+-----------+-------+-------+
| S500i |slider | 90 g |
| P990i |bar | 120 g |
| M600i |bar | 100 g |
+-----------+-------+-------+
then I have a dropdown menu:
<FORM NAME="myform1">
<SELECT NAME="mylist1">
<OPTION VALUE="s500i">Sony Ericsson S500i
<OPTION VALUE="p990i">Sony Ericsson P990i
<OPTION VALUE="m600i">Sony Ericsson M600i
</SELECT>
</FORM>
So, what I want to do is that when user for instanse selects "Sony Ericsson S500i" from the dropdown menu I want get the data from my mySQL database and show it.
I'm new with php and mySQL but if I can have some help, I'm sure I can do this :)
What is the best way to do this?
+-----------+-------+-------+
| Phone |design | weight|
+-----------+-------+-------+
| S500i |slider | 90 g |
| P990i |bar | 120 g |
| M600i |bar | 100 g |
+-----------+-------+-------+
then I have a dropdown menu:
<FORM NAME="myform1">
<SELECT NAME="mylist1">
<OPTION VALUE="s500i">Sony Ericsson S500i
<OPTION VALUE="p990i">Sony Ericsson P990i
<OPTION VALUE="m600i">Sony Ericsson M600i
</SELECT>
</FORM>
So, what I want to do is that when user for instanse selects "Sony Ericsson S500i" from the dropdown menu I want get the data from my mySQL database and show it.
I'm new with php and mySQL but if I can have some help, I'm sure I can do this :)
What is the best way to do this?