Hi,
im a new user to php,problem is : i want to edit/modify the data from the form to the database.kindly make certain changes to it so that the record can be modified.Attached php code is paste below:-
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("test_one", $con);
// some code
$query="select * from db_test";
$result=mysql_query($query);
?>
<?php
while($person=mysql_fetch_array($result))
{
echo "<h4>" .$person['Name']."</h4>";
echo "<h4>" .$person['Description']."</h4>";
?>
<a href="modify.php?id=<?php echo $person['ID']; ?>" >Modify User </a>
<br />
<?php
}
?>
</p>
<p> Creating a user</p>
<form name="form1" method="post" action="modify.php">
Name:
<input type="text" name="inputname" id="inputname">
<br>
Description:
<input type="text" name="inputdesc" id="inputDesc">
<br>
<input type="submit" name="submit">
</form>
</body>
</html>