Chris Hunter
10-31-2002, 02:51 PM
Following Problem:
I want to stop a php script at a specific position in the sript how could i do that. i tried break; but that doesnt work. The code is as followed: "break;" is the position where i want to quite parsing the PHP:
if($private==1)
{
echo "<H3>PRIVATES ALBUM</H3>";
$result=mysql_query("SELECT * FROM $wp_start where album='$album'");
$login=mysql_result($result,0,"passwort");
}
else
{
$result=mysql_query("SELECT * FROM $wp_start where album='$album'");
$login=mysql_result($result,0,"passwort");
if($passwort!="")
{
echo " <H1>!!INTRUDER!!</H1><BR>";
break;
//HERE SHOULD BE THE END
}
}
//HERE GOEAS ADDITIONAL CODE FOR THE SITE
I want to stop a php script at a specific position in the sript how could i do that. i tried break; but that doesnt work. The code is as followed: "break;" is the position where i want to quite parsing the PHP:
if($private==1)
{
echo "<H3>PRIVATES ALBUM</H3>";
$result=mysql_query("SELECT * FROM $wp_start where album='$album'");
$login=mysql_result($result,0,"passwort");
}
else
{
$result=mysql_query("SELECT * FROM $wp_start where album='$album'");
$login=mysql_result($result,0,"passwort");
if($passwort!="")
{
echo " <H1>!!INTRUDER!!</H1><BR>";
break;
//HERE SHOULD BE THE END
}
}
//HERE GOEAS ADDITIONAL CODE FOR THE SITE