All pastes #766243 Raw Edit

Someone

public text v1 · immutable
·published 2007-11-08 19:07 UTC
rendered paste body
<?php
#############################
// UPDATE VFP FILES
#############################

# define some variables
$aloc = "1111";
$item = "SF";

#define the query
$query = "UPDATE arinvt$co SET aloc = $aloc WHERE item = $item";
# perform the query
$update = odbc_exec($connect, $query);
# error check the result query
if (!$update)
	{
	exit ("SQL Error: " .  odbc_errormsg()); 
	} else {
	echo "Update Successful!";
	}
?>