I want to add a second action to the database but when I added in the $tsql2, I get an "An invalid parameter was passed to sqlsrv_query":
$tsql = "UPDATE dbo.mspClient SET avdesktopProduct='".$_POST['product']."',
avdesktopProvider='".$_POST['provider']."',
avdesktopRate='".$_POST['rate']."',
avdesktopQty='".$_POST['qty']."',
avdesktopDate=getdate()
WHERE client='".$_POST['client']."'";
$tsql2 = "INSERT INTO dbo.mspArchive SET client='".$_POST['client']."',
avdesktopchangerate='".$_POST['rate']."',
avdesktopchangeqty='".$_POST['qty']."',
avdesktopchangeDate=getdate()
VALUES (?,?,?,?)";
$stmt = sqlsrv_query( $conn, $tsql, $tsql2);
Any help would be appreciated...it's probably something simple. The $tsql works just fine; this happened when I added in $tsql2.