Hi
I have some code that I have written that pulls out data from a simple database into a dropdown menu.
<?php
mysql_connect('localhost' , 'databasename', 'password');
mysql_select_db('databasename');
$result=mysql_query("SELECT * FROM Persons");
if(mysql_num_rows($result)>0)
{
?>
<select name="Persons">
<?php
while($rows=mysql_fetch_array($result)){
?>
<option value="<?php echo $rows; ?>"> <?php echo $rows; ?></option>
<?php
}
?>
</select>
<?php
}
I would like to update this to a jump menu so that if one of the items of data is selected the user is taken to a page showing all the data from the database about that record.
So I need a form script and a results page please....
All help appreciated.
Many thanks
Steve