are u using a form where the button is to edit?
if u are, u may want to add a hidden field in ur form, which will hold the id of each event eg.
Code:
<input type="hidden" name="id" value="'.$row['id'].'"/>
im guessing that once u press the submit button, the form is submitted to the code u posed, so u will need to catch the id from the posted form like so:
PHP Code:
<?php
$con = mysql_connect("localhost","user","pass");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("my_db", $con);
$result = mysql_query("SELECT * FROM field where id=".$_POST['id']."");
while($row = mysql_fetch_array($result))
{
echo '<form action="">';
echo '<input type="text" name="client_name" value="'.$row['cli-name'].'">';
///Etc, Etc, Etc.
echo '</form>';
}
mysql_close($con);
?>
and hopefully that will display all the info on the selected event
Bookmarks