Not sure if this is the correct place to post this question but here goes.
I've managed to read a record and insert a record but can't do an update using the following code.
<?php
$connect = odbc_connect('Ah123', '', '');
if (!$connect)
{exit("Connection Failed: " . $connect);}
$sql="SELECT * FROM Data";
$rs=odbc_exec($connect,$sql);
if (!$rs)
{exit("Error in SQL");}
$id= 1;
$Header = "New Entry";
$query1 = "UPDATE data SET Header = $Header WHERE ID1= $id";
echo $query1;
$cr1=odbc_exec($connect,$query1);
odbc_close($connect);
?>
The odbc_exec produces an error.
Please help an old struggling crusty
[/code]