I would start by adding some debug strings into your php code:
-
<?php
-
MSSQL_connect("ERIC2005","sa","sa") or die ("can't connect to SQL server");
-
mssql_select_db("PS_SAMPLE_DB") or die ("can't select database");
-
$get_item_sql = "SELECT * FROM PS_ACAD_PLAN";
-
$OUTPUT = MSSQL_QUERY($get_item_sql);
-
ECHO($OUTPUT);
-
MSSQL_CLOSE();
-
?>
-
I would also create a variable for the connection to hand to your query. I know that most don't need to, but I don't think it hurts either.
-
$con = MSSQL_connect("ERIC2005","sa","sa") or die ("can't connect to SQL server");
-
-
$OUTPUT = MSSQL_QUERY($get_item_sql, $con);
-
you also need to change how you are presenting the data:
-
-
while ($row = mssql_fetch_array($OUTPUT))
-
{
-
echo $row['column_name'];
-
}
-
-
so let me put this together
-
<?php
-
-
$con = MSSQL_connect("ERIC2005","sa","sa") or die("can't connect");
-
-
$db = mssql_select_db("PS_SAMPLE_DB") or die ("can't connect to db");
-
-
$get_item_sql = "SELECT * FROM PS_ACAD_PLAN";
-
-
$OUTPUT = MSSQL_QUERY($get_item_sq, $con);
-
-
while ($row = mssql_fetch_array($OUTPUT))
-
{
-
echo $row['column_name'];
-
}
-
-
MSSQL_CLOSE();
-
?>
-
see if that helps :)