No output after mysql_connect
"Dinesh Kumar" <[email protected]> Mon, 12 Feb 2007 15:54:38 +0530
| Newsgroups | gmane.comp.db.mysql.windows |
|---|---|
| Organization | denabank |
| Message-ID | <043701c74e8f$ffd55790$321010ac@Dinesh> |
Hi MySQLers
I have written following script:
----------------------------------------------------------------------
<?php
echo 'Hello World';
$con = mysql_connect('localhost', 'dinesh', 'dinesh');
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
echo 'connected';
?>
------------------------------------------------------------------------
On execute, I find that 'Hello World' only is printed.
no code below mysql_connect function call get executed.
I do not get the errormessage also. Hence I do not know whether I am
connected.
Bytheway, I am able to connect through commandline interface using given
username and password.
Please help.
Regards
Dinesh
--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe: http://lists.mysql.com/[email protected]