sql server is not working in windows 7
Posted by: ritheshm (117.240.239.---)
Date: February 16, 2012 06:04AM

hello everyone,

i have wamp server installed, Apache version 2.2.11 and when i run it it gives this error....

Call to undefined function sqlsvr_connect() in C:\Users\RITHESH M\AppData\Roaming\NuSphere\PhpED\projects\project1\udaya1.php on line 12


any one can help me to correct this problem....

Options: ReplyQuote
Re: sql server is not working in windows 7
Posted by: stevenmartin99 (---.32-151.iol.it)
Date: February 16, 2012 07:22AM

Wamp doesn't have sqlsrv.

U will need to download the sqlsrv extension from Microsoft and add it into the php extension directory and then add a new line for that extension in the php.ini

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: sql server is not working in windows 7
Posted by: ritheshm (117.240.239.---)
Date: February 21, 2012 10:46AM

i have downloaded and enabled the following dll's in php.ini


extension=php_sqlsrv_53_ts_vc6.dll
extension=php_pdo_sqlsrv_53_nts_vc6.dll


still when i run the program its giving error like,

Call to undefined function sqlsvr_connect()....

Options: ReplyQuote
Re: sql server is not working in windows 7
Posted by: stevenmartin99 (Moderator)
Date: February 21, 2012 11:24AM

Needs to be vc9

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: sql server is not working in windows 7
Posted by: stevenmartin99 (Moderator)
Date: February 21, 2012 11:24AM

Needs to be vc9

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
MySQL is not working in windows 7
Posted by: tasteofkush (---.lsanca.fios.verizon.net)
Date: February 29, 2012 07:47AM

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"winking smiley;

$sql = "SELECT * FROM ************";
$result = MSSQL_QUERY($sql);
echo $result;
$number = MSSQL_NUM_ROWS($result);


?>
</body>
</html>

Options: ReplyQuote
Re: MySQL is not working in windows 7
Posted by: stevenmartin99 (Moderator)
Date: February 29, 2012 08:27AM

U need to swap to sqlsrv

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.