ideasworking
Programmer
Hello,
I created a table valued function in MSSQL and now I would like to pull that data into PHP to display on the page. Is this possible? If so, how? This is what I have tried so far and it didn't work.
[COLOR=blue gray]
$db = @mssql_connect("MSSQL","me","mypassword") or die("Unable to connect to server");
mssql_select_db("Reporting");
$Monthlyqry = mssql_query("SELECT * FROM dbo.TotalsSummary($FirstofMonth,$CurrentDate)")
mssql_data_seek($Monthlyqry, $monthly_count);
$Monthly = mssql_fetch_array($Monthlyqry);
[/color]
I created a table valued function in MSSQL and now I would like to pull that data into PHP to display on the page. Is this possible? If so, how? This is what I have tried so far and it didn't work.
[COLOR=blue gray]
$db = @mssql_connect("MSSQL","me","mypassword") or die("Unable to connect to server");
mssql_select_db("Reporting");
$Monthlyqry = mssql_query("SELECT * FROM dbo.TotalsSummary($FirstofMonth,$CurrentDate)")
mssql_data_seek($Monthlyqry, $monthly_count);
$Monthly = mssql_fetch_array($Monthlyqry);
[/color]