I'm having some trouble with this... i'm using php to talk with MSSQL 2005 (not express)
I have been able to create and populate tables however I can't seem to retrieve the information.
Its my understanding that the information needs to be placed into an array so I have done so.. yet no matter what variation i try I cannot get it to retrieve and display the info..
below is the code i'm using:
<?php
$con = mssql_connect("localhost","MyUsername","Mypassword");
if (!$con)
  {
  die('Could not connect: ' . mssql_error());
  }
mssql_select_db("MyDatabase", $con);
$result = mssql_query("SELECT * FROM Account Numbers");
for ($i = 0; $i < mssql_num_rows( $result ); $i++)
    {
        $row = mssql_fetch_row($result);
    }
Echo ("AccountNumbersID: ".$row[0]."<br />");
Echo ("Account Number: ".$row[1]."<br />");
Echo ("Description: ".$row[2]."<br />");
Echo ("Appropriation Balance: ".$row[3]."<br />");
Echo ("Net Change: ".$row[4]."<br />");
Echo ("Ending Balance: ".$row[5]."<br />");
echo('Cheese');
?>
thanx in advance everyone..
~ag3nt42