php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16694 connexion problem
Submitted: 2002-04-19 04:11 UTC Modified: 2002-04-19 06:30 UTC
From: dacol dot jeremy at caramail dot com Assigned:
Status: Not a bug Package: MSSQL related
PHP Version: 4.1.2 OS: win 2000+ase 12.5+easyphp
Private report: No CVE-ID: None
 [2002-04-19 04:11 UTC] dacol dot jeremy at caramail dot com
hello,

i give you my connection script:
<?php

	$db="accessoire";
	$dbserver="B453903";

	unset($conn);
	$conn=@mssql_connect("$dbserver","sa","");
	if(! $conn) {
		echo "Connexion au serveur impossible";
		exit;
	} else {
	    $db=mssql_select_db("$db",$conn);
			if (! $db) {
			echo "Connexion ? la base de donn?es impossible\n";
		    exit;
			}
		}
?>

when i compile this easyphp return me:

Warning: Sybase: Server message: Changed database context to 'accessoire'. (severity 10, procedure N/A) in c:\program files\easyphp\www\test\fonction\connect_accessoire.php on line 12

and after this i use headers and session cookies.....
i don't show you all of the warning it cames.

if you have a solution please help me i'm going to be mad!!!

thanks


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-19 04:25 UTC] hholzgra@php.net
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php


adding a @ before mssql_select_db might help,
the rest you see are followups as the error
message enforced header sending
 [2002-04-19 04:42 UTC] dacol dot jeremy at caramail dot com
a try those solutions but when i put a @ before mssql_selec_db easyphp tell me that it can find the page which call the connect_accessoire.php i don't understand........
 [2002-04-19 06:30 UTC] sander@php.net
This is NOT  a support forum!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 15 08:01:28 2024 UTC