Menu
I am pulling the info from form inputs. For some reason I can’t get more than 1 entry to to be updated, can someone guide me in the right direction for my “query”?
Thanks.
[code=php]
<?php
//connection information
$ser=”server”; $db=”database”; $user=”username”; $pass=”password”;
//sql connection
$conn = odbc_connect($db, $user, $pass);
$query= “UPDATE database SET Column1 = ‘$Column1’ WHERE Company_Name=’$Company_Name'”;
odbc_do($conn, $query);
?>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
<title>Form</title>
</head>
<body>
</body>
</html>
<?php
odbc_close($conn);
?>