Jani,
$db=mysql_connect ("localhost", "argosnet", "");
if ($db<=0)
{
print ("<FONT COLOR=\"Red\"><STRONG>");
print ("SQL Server error, cannot connect server<STRONG></FONT><BR>");
exit;
}
# Ok at this level
$rc=mysql_select_db($database,$db);
if ($rc<=0)
{
print ("<FONT COLOR=\"Red\"><STRONG>");
print ("SQL Server error, cannot select database<STRONG></FONT><BR>");
exit;
}
# rc<=0, then error! If mysql_error is not trustable, I cannot tell what is
the error, but there's one
At 10:13 18/03/2001 +0100, Jani Taskinen wrote:
>On Sun, 18 Mar 2001, Laurent LEVIER wrote:
>
>>But I don't use mysql_error() in my basic script. I added it to display the error
>message.
>>
>>Without it, the error remains, but we just dont know what error it is :)
>>
>>So there is really a problem with connect (and also pconnect, I also tried).
>>Where is that usename ??
>
>Hmm..I can't read minds so please explain WHAT doesn't work?
>
>--Jani
Laurent LEVIER
IT Systems & Networks, Unix System Engineer
Security Specialist
Argosnet Security Server : http://www.Argosnet.com
"Le Veilleur Technologique", "The Technology Watcher"
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]