Skip navigation links

MySQL Forums :: PHP :: GEtting the value of a selected listbox item


Advanced Search

GEtting the value of a selected listbox item
Posted by: Intellect Research ()
Date: June 18, 2013 05:37AM

<?php

//Establish connection


$query = "SELECT Matric_No FROM civil_2005_2006_sem1_yr1" or die (mysql_error());
$sql = mysql_query($query);

print "<p>Select MatNo: \n";
print "<select name=\"MatricNo\" > \n";

while ($row = mysql_fetch_array($sql))
{
$Matric_No = $row["Matric_No"];
// Echo your rows here...
print "<option value=$Matric_No>$Matric_No\n";
}
print "</select>\n";

>?

Options: ReplyQuote


Subject Written By Posted
GEtting the value of a selected listbox item Intellect Research 06/18/2013 05:37AM
Please how do I get the value of a selected listbox item? Intellect Research 06/18/2013 05:43AM
Re: GEtting the value of a selected listbox item Peter Brawley 06/18/2013 09:28AM
Re: GEtting the value of a selected listbox item Intellect Research 06/21/2013 07:36AM
Re: GEtting the value of a selected listbox item Peter Brawley 06/21/2013 11:41AM
Re: GEtting the value of a selected listbox item Intellect Research 06/26/2013 02:40AM
How to write the Session_Register Function Intellect Research 06/26/2013 02:41AM
Re: GEtting the value of a selected listbox item Barry Galbraith 06/18/2013 05:48PM
Re: GEtting the value of a selected listbox item Eone James 06/24/2013 11:07PM
Re: GEtting the value of a selected listbox item Intellect Research 06/26/2013 02:32AM
Re: GEtting the value of a selected listbox item Barry Galbraith 06/26/2013 09:44PM
Re: GEtting the value of a selected listbox item Intellect Research 06/27/2013 02:47AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.