Alex, (Sorry I was off for the psat couple of days, So couldn't replay any of the posts here)
You would curse yourself, seeing the solution. You have missed the concatenation operator inbetween;)
$query = "UPDATE AddTable2 SET Code='" . $c . "', Description='" . $d . "', Name='". $n . "' WHERE Id='" . $Id . "'";
NOTE: Something to remember always, Do not use Single Quotes around the VARIABLE, if its DATATYPE is of NUMERIC set in the DATABASE.
May be you can alter the above said query, as I am not sure about the Datatypes of each column there.
PS: I will be online for next 5 days (Early morning IST).
Cheers!
-Vijay G
|