From:             [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:      4.1.1
PHP Bug Type:     MSSQL related
Bug description:  Queries Crashing PHP.EXE

Evenin'...

This morning I decided to try PHP for our company web site instead of
VBScript.  Imagine my delight to find PHP will handle SQL7 with the
minimum of fuss... all it would take was

<?php
$hostname = "[IPADDRESS],[PORT]"; 
$username = "[USER]"; 
$password = "[PWD]"; 
$dbName = "[DATABASENAME]"; 
MSSQL_CONNECT($hostname,$username,$password) or DIE("DATABASE FAILED TO
RESPOND.");
mssql_select_db ( $dbName );
$query = "SELECT * FROM [TABLE]";
mssql_query ($query);
?>

Or even lazier
<?
MSSQL_CONNECT("[IPADDRESS],[PORT]","[USER]","[PWD]");
mssql_select_db ([DATABASENAME]);
mssql_query ("SELECT * FROM [TABLE]");
?>

Brilliant 15 lines of VBScript is 3 lines..

Imagine, then, my chagrin, for when I added the mssql_query(); statement I
get a window saying PHP.EXE - Application Error.. The instruction at
"0x00" referenced memory at "0x00", The memory could not be "read"...

Is it me???

The setup I used was the windows installer but I put php_mssql.dll into
c:\PHP and told the php.ini file where it was.. I also stuck the
ntwdblib.dll into c:\windows\system32... Yes I know it should be c:\winnt
but I changed it at setup...

AAaaanyway...
-- 
Edit bug report at http://bugs.php.net/?id=15400&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=15400&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=15400&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=15400&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15400&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15400&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15400&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=15400&r=notenoughinfo


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to