I've searched the web and tried many different methods, and still failing. Heres the situation:

<form is up here>

if(isset($_POST['save1'])) {
$title1 = $_POST['title1'];
$title2 = $_POST['title2'];
$title3 = $_POST['title3'];
$content1 = $_POST['content1'];
$content2 = $_POST['content2'];
$content3 = $_POST['content3'];
if(!get_magic_quotes_gpc()) {
$title1 = addslashes($title1);
$title2 = addslahses($title2);
$title3 = addslashes($title3);
$content1 = addslashes($content1);
$content2 = addslashes($content2);
$content3 = addslashes($content3);
$con = mysql_connect(input my info...);
if (!$con){
die('Could not connect: ' . mysql_error());
mysql_select_db("db", $con);
$result = mysql_query("UPDATE 'homepage' SET title='$title1' WHERE id='1'");
$result = mysql_query("UPDATE 'homepage' SET title='$title2' WHERE id='2'");
$result = mysql_query("UPDATE 'homepage' SET title='$title3' WHERE id='3'");
$result = mysql_query("UPDATE 'homepage' SET content='$content1' WHERE id='1'");
$result = mysql_query("UPDATE 'homepage' SET content='$content2' WHERE id='2'");
$result = myslq_query("UPDATE 'homepage' SET content='$content3' WHERE id='3'");

echo "Edit complete";

what would be the issue? Or any better method of going about this? (building a content manager) I already have the homepage pulling preset data from database and works fine.. but this is annoying!!!