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! 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!"; } 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
Archived
This topic is now archived and is closed to further replies.