<?php
include_once("db.php");
$id = $_GET['id'];
$query = mysql_query("SELECT * FROM announce WHERE id = '$id'");
$row = mysql_fetch_array($query);
$days= $row['days'];
echo "<table width='98%' border='0' align='center' cellpadding='0' cellspacing='0'>
<tr>
<td>
<form>
<input type='text' value='$row[name]' disabled><br />
<input type='text' value='$row[last_name]' disabled><br />
<input type='text' value='$row[birthdate]' disabled><br />
<input type='text' value='$row[gender]' disabled><br />
<input type='text' value='$row[subject]'><br />
<input type='text' value='$row[city]' disabled><br />
<input type='text' value='$row[location]'><br />
<input type='text' value='$row[price]'><br />
<input type='text' value='$row[currency]'><br />
<br>
<input type='text' value='$row[time]'><br />
<input type='text' value='$row[mobile]' disabled><br />
<input type='text' value='$row[comment]' disabled><br />
</form>
</td>
</tr>
</table>";
?>
Hello, I made edit page where user can edit his/her info. In database I also have info about days. I want user to be able edit days. For example while registering he/she may choose "Sunday,Monday" and in edit page I want to have check boxes to add or remove days.enter image description here
I tried a lot searching google but no result :(
Aucun commentaire:
Enregistrer un commentaire