Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (28 sloc) 0.672 kB
<HTML>
<HEAD>
<TITLE>New Document</TITLE>
</HEAD>
<BODY >
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("openspace", $con);
$query = "SELECT c_id FROM contact_info";
$acquireValues = mysql_query($query);
echo '
<form action="m40.php" method="POST" >
<select name="c_id" size="1">';
while($values = mysql_fetch_array($acquireValues))
{
echo '<option value="'.$values[0].'" >'.$values[0].'</option>';
}
echo '
</select>
<input type="submit" value="submit"/>
</form>';
?>
</BODY>
</HTML>
Jump to Line
Something went wrong with that request. Please try again.