Re: connection problème!
| From: | Plutarck | Date: | Sat, 21 Apr 2001 18:46:29 +0000 |
| Subject: | Re: connection problème! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49694@lists.php.net to get a copy of this message | ||
Not enough "}".
Change it to:
<?php
echo "starting...";
if ( mysql_connect("localhost","php","php") )
{
echo "ok";
} else
{
echo "error!";
}
?>
--
Plutarck
Should be working on something...
...but forgot what it was.
""Francois Boucher"" <franky@iname.com> wrote in message
news:9bsk0h$r2e$1@toye.p.sourceforge.net...
> I wrote this code but nothing append. If i look de code in the browser
it's
> stopping to starting!
>
> What is the problème?
>
>
> <HTML><BODY>
> <?php
> echo "starting...";
> if ( mysql_connect("localhost","php","php") )
> { echo "ok"; }
> else
> echo "error!";
>
> ?>
> </BODY></HTML>
>
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> -= François Boucher =-
> -= franky@iname.com =-
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> -= François Boucher =-
> -= franky@iname.com =-
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>