Hello,
When I attempt to execute a stored procedure from PHP it doesn't work. The SP does work... so I'm guessing it has something to do with my bind statement. Any suggestions to get this code working?
TIA,
Lou
When I attempt to execute a stored procedure from PHP it doesn't work. The SP does work... so I'm guessing it has something to do with my bind statement. Any suggestions to get this code working?
TIA,
Lou
Code:
$RecDate=$_POST['RecalcDate'];
$db = mssql_connect("****","sa",*****) or die("Unable to connect to server");
mssql_select_db("Reporting");
$proc = mssql_init("CalculateDailyTotals", $db);
mssql_bind($proc,"@RequestDate",$RecDate,SQLDATETIMN);
mssql_execute($proc);