|
Posted by Robertu on 05/19/07 07:19
"Erwin Moller"
WROTE:
> Hi Robertu,
>
>> $connection = mysql_connect("12.34.5.67.89", "Sql111111","hELLOWORLD");
>
> mysql_connect returns a value.
> Check at www.php.net for details.
>
> In this case FALSE is returned if the mysql_connect fails.
> So you'll end up with something like this:
> $connection = @mysql_connect("12.34.5.67.89", "Sql111111","hELLOWORLD");
> if ($connection === FALSE){
> echo "problem connecting...";
> exit;
> }
Hi Erwin and tank you very much
NOW I wrote
$connection = @mysql_connect("12.34.5.67.89", "Sql111111","hELLOWORLD");
if ($connection === FALSE)
{
header("www.pippo.es/");
exit();
}
can it work?
I tryed also:
$connection = @mysql_connect("12.34.5.67.89", "Sql111111","hELLOWORLD");
if ($connection === FALSE)
{
out();
}
function out()
{
header("www.pippo.it/");
exit();}
Thank you in advance and best regards
[Back to original message]
|