aeshanw Posted May 19, 2007 Share Posted May 19, 2007 I'm trying to use PHP with an MS Access but Im having problesm with this UPDATE statment. odbc_exec($odbc, "UPDATE tblProducts SET subCatId='$subCat' WHERE ProdNo='$id'"); Any idea why?thanks! Quote Link to comment https://forums.phpfreaks.com/topic/52100-ms-access-odbc-update-doesnt-work/ Share on other sites More sharing options...
aeshanw Posted May 19, 2007 Author Share Posted May 19, 2007 Here's more code if u'd like to know how I used it. if(isset($_POST['Submit'])) { $subCat = $_POST['subCat']; $check = $_POST['check']; foreach($check as $id){ if(odbc_exec($odbc, "UPDATE tblProducts SET subCatId='$subCat' WHERE ProdNo='$id'")){ echo "<br>UPDATE SUCCESS!"; }else{ echo "<br>UPDATE FAILED!"; } } echo "UPDATE COMPLETE!"; } Quote Link to comment https://forums.phpfreaks.com/topic/52100-ms-access-odbc-update-doesnt-work/#findComment-256858 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.