Posted by:
tasteofkush
(---.lsanca.fios.verizon.net)
I installed WAMP server on windows 7 and I am having a lot of trouble . FIrst, I tried pulling over a Joomla site to do production on and that's been overwhelming and is still not working. I then tried a simple script to hit the database and am getting the error below. FYI: I've tried 3 different scripts and have the same result on each. Any help would be greatly appreciated.
ERROR*********************************************************
Fatal error: Call to undefined function my_sql_select_db() in D:\wamp\www\blah\config.php on line 15
Call Stack
# Time Memory Function Location
1 0.0014 680584 {main}( ) ..\config.php:0
****************************************************************
PHP SCRIPT**************************************************************
<html>
<head>
<title>Example</title>
</head>
<body>
<?php
$hostname = 'localhost';
$username = '';
$password = '';
$dbName = 'publications';
MSSQL_CONNECT($hostname,$username,$password);
mssql_select_db($dbName) or DIE("Table unavailable"
;
$sql = "SELECT * FROM ************";
$result = MSSQL_QUERY($sql);
echo $result;
$number = MSSQL_NUM_ROWS($result);
?>
</body>
</html>