Hello,
Ok, this file test.php was successful
<?php
echo "hey"
?>
so I know at least php works.
now the problem:
*********
i have a database setup in microsoft sql server named JAREDNET and the table in it named TEST with the following attributes: FIRSTNAME, LASTNAME, AGE. I populated the table with a few generic rows.
*********
I put the php_mssql.dll in the below directory and edited my php.ini and added the following lines:
extension_dir = "C:\Program Files\PHP\extensions"
extension=php_mssql.dll
*********
Now the code on my test_db.php
<?php
$server="localhost,1433";
$username="sa";
$password="";
$sqlconnect=mssql_connect($server, $username, $password);
$sqldb=mssql_select_db("JAREDNET",$sqlconnect);
$sqlquery="SELECT FIRSTNAME FROM TEST;";
$results= mssql_query($sqlquery);
while ($row=mssql_fetch_array($results)){
echo $row['FIRSTNAME']."<br>\n";}
mssql_close($sqlconnect);
?>
**********
when i try to access the php page, it just shows blank - no errors, no nothing. I am lost!
Thanks for any help or any insight!!
-Jared
Ok, this file test.php was successful
<?php
echo "hey"
?>
so I know at least php works.
now the problem:
*********
i have a database setup in microsoft sql server named JAREDNET and the table in it named TEST with the following attributes: FIRSTNAME, LASTNAME, AGE. I populated the table with a few generic rows.
*********
I put the php_mssql.dll in the below directory and edited my php.ini and added the following lines:
extension_dir = "C:\Program Files\PHP\extensions"
extension=php_mssql.dll
*********
Now the code on my test_db.php
<?php
$server="localhost,1433";
$username="sa";
$password="";
$sqlconnect=mssql_connect($server, $username, $password);
$sqldb=mssql_select_db("JAREDNET",$sqlconnect);
$sqlquery="SELECT FIRSTNAME FROM TEST;";
$results= mssql_query($sqlquery);
while ($row=mssql_fetch_array($results)){
echo $row['FIRSTNAME']."<br>\n";}
mssql_close($sqlconnect);
?>
**********
when i try to access the php page, it just shows blank - no errors, no nothing. I am lost!
Thanks for any help or any insight!!
-Jared