The php cant seems to connect with the server. There is no respond when i run it. Wonder what went wrong? Did i miss out installing something or ? Have used these codes below: <?php $conn=mssql_connect('server', 'username', 'password'); $db=mssql_select_db("database",$conn); if (!$conn || !$db ) { die ('cannot connect properly') } $query="SELECT companyName FROM Customers;"; $result= mssql_query($query); while ($row=mssql_fetch_array($result)){ echo $row['number']."<br>\n";} mssql_close($conn); ?> Can someone help? thanks alot.
sorry. typo error. i did echo $row['companyName'].. but still it doesnt seems to run, still blank page, nothing appears. Whereas if i echo "aaaa" BEFORE the connection strings start, the "aaaa" did appear. But when its put AFTER the connection strings, nothing appears. Wonder whats happening?
Nothing appears. It seems weird. If anything go wrong, you would get the return 'cannot connect properly' for you have die() there. I think you must open the debug mode in your environment.
ya its wierd that the error msg didnt even appear. how to go about opening the debug mode ? any idea whats going on here ? is there anything that i need to install or edit in the extensions, to solve this problem ?