Re: No output after mysql_connect

Tobin Cataldo <[email protected]> Mon, 12 Feb 2007 07:58:05 -0600
Newsgroups gmane.comp.db.mysql.windows
Message-ID <[email protected]>
This is probably not a MySQL issue...
Set your error.log in your php.ini. If you have already set that then 
the error should show up there. Also check the web server log for errors.

Dinesh Kumar wrote:
> 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]