<?php
// Connect To the Server
$db = mysql_connect("servername","userid","password") or die(mysql_error());
// Select the Database to use
mysql_select_db("databasename", $db) or die(mysql_error());
// Define the SQL and run the query
$mysql = "UPDATE admin SET yourname='$yourname', youraddress='$youraddress', yourcity='$yourcity', yourpcode='$yourpcode', yourtel='$yourtel', youremail='$youremail', yourcontact='$yourcontact', yourbank='$yourbank', yourbranch='$yourbranch', yourbranchcode='$yourbranchcode', youraccount='$youraccount', farmname='$farmname', hunttype='$hunttype', subtitle='$subtitle', theme='$theme' WHERE user='$name";
$result = mysql_query($mysql) or die(mysql_error());
// Now use your mysql_ functions on $result
// run SQL against the DB
if (mysql_affected_rows() != 1) echo "An update problem";
echo "<br>";
if(!($result)) die(mysql_error());
echo "<br>";
?>