|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
Sybase connect
Hi!
This is the code i am running: <?php $dbconn = sybase_connect("Myserver", "sa", "some_WRONG_passwd"); if (!$dbconn) { echo "Could not open database."; exit; } ?> now I would think that this little code would give me the following output: Could not open database. Nothing more. But instead i get the error message from the sybase server.. like: Warning: Sybase error: Login failed for user 'sa'. (severity 14) in /WWW/connect.php on line 2 I never get the output i want, even if i put error_reporting(0) i don't get the output.. why? The php manual says that sybase_connect() should give me an linkid on success and false on failure.. but it never returns false, it just ends the script after it outputs the warning error...! why ? Anybody please help! |
|
#2
|
|||
|
|||
|
RE: Sybase connect
Try using the @ to supress the warnings:
$dbconn = @sybase_connect("Myserver", "sa", "some_WRONG_passwd"); |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > Sybase connect |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|