Jump to content

MS ACCESS ODBC Update doesnt work


aeshanw

Recommended Posts

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!";

}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.