I just started trying to programm in PHP a couple of days ago and i can't seem to find any help on connecting and returning data from MS-SQL Server. I think i have all the connections working but when i run my code it just returns "Reference ID #3". with if i understand means no data is being returned but i don't understand where i'm going wrong. Here is my code:
[PHP]
<?php
MSSQL_connect("ERIC2005","sa","sa");
mssql_select_db("PS_SAMPLE_DB");
$get_item_sql = "SELECT * FROM PS_ACAD_PLAN";
$OUTPUT = MSSQL_QUERY($get_item_sql);
ECHO($OUTPUT);
MSSQL_CLOSE();
?>
[/PHP]
I am running xampp on a winXP(pro) using sql server 2005