Click to See Complete Forum and Search --> : PHP/MySQL help needed


alex_6169
October 28th, 2004, 10:45 AM
Hi,

I have a mysql table with two fields, group and topic. I want to be able to get a list of groups from the 'group' field, then display them in a drop down box. When the group is selected in the drop down box, I then want the 'topic' to be displayed in a text box. I then want to be able to click a submit button and save the topic over the original topic. as i am a n00b at coding, especially with mysql, I would like some help on how to do it. This is for a php-nuke module, thus there shouldnt be a need to connect to the mysql database etc.

Thanks in advance, Alex

khp
October 29th, 2004, 01:35 PM
OK, I suppose this is where I ask the obligatory, what have you done so far ?.

alex_6169
October 29th, 2004, 08:37 PM
I have the form :P

I did try a few things with MySQL but they didnt work, so im back to square one. I have the database fully set up with information in both the group and topic sections, but thats about it. Im thinking I might need some javascript to run a query after selecting from the dropdown box...but I am not sure.

Alex

PallaviDalvi
October 29th, 2004, 10:56 PM
How about referring to the PHP manual (http://www.php.net/manual/en/ref.mysql.php) for help on reading from/writing to the MySql database? take this first step and then get back for the second one.
u didnt expect some one on this forum to give u the code on a platter did u?? ;)