$sql = @mssql_connect($myServer, $myUser, $myPass)
or die("Couldn't connect to SQL Server on $myServer");
$query = "SELECT * FROM MasterAccounts";
$result = mssql_query($query);
$num = mssql_num_rows($result);
while($row = mssql_fetch_array($result))
{
echo "$num<br />";
echo "$row[FirstName]";
echo " ";
echo "$row[LastName]";
}
In the above code, the Table it is pulling (MasterAccounts) has 173 records. However for some odd reason that I do not understand it only pulls one record from the middle of the list. Instead of displaying every record. Am I doing something wrong? Could someone point me in the right direction? I have also tried using a while loop inside and a for loop, each with no success. Always the same record displayed and always just 1.
As always Thanks for the help,
Tony Devlin