I'm using the following to insert into my table.
<?php
// get form items
$artistfirst = $_POST['artistfirst'];
$artistlast = $_POST['artistlast'];
$website = $_POST['website'];
$label = $_POST['label'];
$labelwebsite = $_POST['labelwebsite'];
$bigpicture = $_POST['bigpicture'];
$indexpicture = $_POST['indexpicture'];
$smallerpic1 = $_POST['smallerpic1'];
$smallerpic2 = $_POST['smallerpic2'];
if ($artistfirst) {
$result = mysql_query("INSERT INTO db(artistfirst, artistlast, website, label, labelwebsite, bigpicture, indexpicture, smallerpic1, smallerpic2) VALUES ('$artistfirst','$artistlast','$website','$label','$labelwebsite','$bigpicture','$indexpicture','$smallerpic1','$smallerpic2')");
if ($result) {
echo "<font size=2 face=Arial><b>".$artistfirst." ".$artistlast."</b> has been added to site<br></font><font size=1 face=arial>The artist will appear on the site right now, so add some content.<BR><br>You are now being forwarded to the start of the submition please wait... </font><meta http-equiv=\"refresh\" content=\"10;URL=/submition.php\">";
die ();
} else {
echo "Record NOT added<br>";
}
} else {
echo "<br><br><font size=1 face=Arial>your images have been uploaded, please continue with your upload</p></font>";
}
?>
Now how can I update this so, that I can use it as an edit machine aswell.