Find file
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (50 sloc) 1.65 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);
$application_no = $_POST['l_id'];
$query = "SELECT * FROM `likes_interests` WHERE l_id = '$application_no'";
$acquireValues = mysql_query($query);
$values = mysql_fetch_array($acquireValues);
echo '<form action="m300.php" method="POST">
<table>
<tr>
<td>Likes ID:</td><td>'.$values[5].'</td>
</tr>
<tr>
<td>Activities:</td><td><input type="text" name="activities" value="'.$values[0].'"/></td>
</tr>
<tr>
<td>interests:</td><td><input type="text" name="interests" value="'.$values[1].'"/></td>
</tr>
<tr>
<td>Movies:</td><td><input type="text" name="movies" value="'.$values[3].'"/></td>
</tr>
<tr>
<td>Music:</td><td><input type="text" name="music" value="'.$values[2].'"/></td>
</tr>
<tr>
<td>Television:</td><td><input type="text" name="television" value="'.$values[4].'"/></td>
</tr>
<tr>
<td>books:</td><td><input type="text" name="books" value="'.$values[6].'"/></td>
</tr>
<tr>
<td>other_details_likes:</td><td><input type="text" name="other_details_likes" value="'.$values[7].'"/></td>
</tr>
<tr>
</table>
<input name="l_id" type="hidden" value="'.$application_no.'" />
<input type="submit" value="Submit">
</form>'
?>
</BODY>
</HTML>