|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-03-19 17:46 UTC] pettern at thule dot no
sybase_query() fails: Warning: 1 is not a valid Sybase-Link resource in file.php on line 100 This worked flawlessly with 3.0.x versions. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 09:00:02 2025 UTC |
Please try something like this <? error_reporting(-1); $db = sybase_pconnect("SYB_SERVER", "user", "password") or die("Could not connect to database."); ?> What do you get?I got the same. However, seeing the $db in your statement got me trying this: $ok = sybase_pconnect($dbhost,$dbuser,$dbpwd) or die ( "Unable to connect to SQL server."); if(!$ok) { die("Error connecting to SQL Server"); } I see no reason why this should function any better, unless the use of the or has changed. However, this works for SELECT and INSERT queries, but fails if I do a "BEGIN TRANSACTION" to start a more advanced operation. So well, closer but no cigar yet.