In my php3 script, I have the following
section of code that updates my access
database when a user enters in a new
product.
The problem I'm having is that if the
user enters a ' or " char - it won't
add it to the access database.
Below is my code...
$sQuery = "INSERT INTO product ";
$sQuery .= "(product, origin, quantity, packing, price, notes, datez, active)";
$sQuery .= " VALUES ";
$sQuery .= "('$sProduct', '$sOrigin', '$sQuantity', '$sPacking', '$sPrice', '$sNotes', '$sTodaysDate', $iActive)";
$iResult = odbc_exec($iConnect, $sQuery);
Any help would be appreciated.
Thanks.