Update data

You are updating this record.
[insert_php]
global $wpdb;
$Host = “localhost”;$User = “jewishle_gilmod”;$Password = “Rosina[B]erger”;$DBName = “jewishle_wp35”;error_reporting(0);

$Link = mysql_connect ($Host, $User, $Password) or die(“Couldn’t connect to the database!”);
mysql_select_db ($DBName, $Link) or die(mysql_error());

$indexcd=$_POST[‘indexcd’];
$firstname=$_POST[‘firstname’];
$surname=$_POST[‘surname’];
$gravenum=$_POST[‘gravenum’];
$gravecol=$_POST[‘gravecol’];
$graverow=$_POST[‘graverow’];
$section=$_POST[‘section’];
$datedied=$_POST[‘datedied’];
$age=$_POST[‘age’];
$theyear=$_POST[‘theyear’];
$dateborn=$_POST[‘dateborn’];
$hebrewyearD=$_POST[‘hebrewyear’];
$hebrewmonthD=$_POST[‘hebrewmonth’];
$themonth=$_POST[‘themonth’];
$maiden=$_POST[‘maiden’];
$additional1=$_POST[‘add1’];
$additional2=$_POST[‘add2’];
$nostone=$_POST[‘nostone’];

//——- new stuff start
$sql = “UPDATE jewishle_wp35.cemdata
SET firstname = ‘$firstname’,
surname = ‘$surname’,
gravenum = ‘$gravenum’,
gravecol = ‘$gravecol’,
graverow = ‘$graverow’,
section = ‘$section’,
datedied = ‘$datedied’,
age = ‘$age’,
year = ‘$theyear’,
dateborn = ‘$dateborn’,
hebrewyearD = ‘$hebrewyearD’,
hebrewmonthD = ‘$hebrewmonthD’,
month = ‘$themonth’,
maiden = ‘$maiden’,
additional1 = ‘$additional1’,
additional2 = ‘$additional2’,
nostone = ‘$nostone’
WHERE indexcd = $indexcd”;

echo $sql.’
‘;

$result = mysql_query( $sql ) or die( mysql_error() );

//——- new stuff end
[/insert_php]