Hi all,
I'm trying to do a simple update for a 3 cell table. Updating two cells by selecting the 3rd. Could you take a look at the code below and see if you can see why it is not updating?
I'm getting no errors other than "Couldn't update record!".
Thanks, Ray
<?php
include("required.php");
// Connect to the database server
$dbcnx = @mysql_connect("localhost",
"$user", "$password");
if (!$dbcnx) {
echo( "<P>Unable to connect to the " .
"database server at this time.</P>" );
exit();
}
// Select the hrcomm database
if (! @mysql_select_db("hrcomm") ) {
echo( "<P>Unable to locate the hrcomm" .
"database at this time.</P>" );
exit();
}
$sql = "UPDATE $tablename
SET introletter = \"$introletter\", disclaimer = \"$disclaimer\"
WHERE company = \"$company\"
";
if (!$sql_result) {
echo "<P>Couldn't update record!";
} else {
//continue
}
?>







Bookmarks