hi guys,
how would one make this pesudo code into proper php code
first a little background,
i have a table called users_details which has 3 fields : user_id
username and module_id. this is to be filled out by user in a form.
I have ANOTHER table called modules which has module_id and module_details.
In the form created I have got 2 blank text fields for the user to enter user_Id and username the 3rd element in the form should be a drop down menu which is populated by the field module_id in the table MODULES. I am however havin trouble populating the drop down menu.
Now to the pesdo code
query select module_id from table [b]modules[/b];
$row = make sure each result from the query is one row......
while ($row=mysql_fetch() , $result);
echo "<option> $row[0] ,\n");*
*this should loop though all the rows in the field module_ID
I know this is at best messy but I am in desperate need of ur help