Mailinglisten-Archive |
> liegt das include in einer Schleife ?
Hallo Nicolas,
ich weiß nicht, wie weit die Definition von "Schleife" geht ... also:
<schnipp>
elseif ( isset($button2))
{
finden($SID, $NID, $value1, $MID, $form, $seiten_titel, $text);
}
</schnipp>
Dann:
<schnipp>
function finden($SID, $NID, $value1, $MID, $form, $seiten_titel, $text)
{ include ("../include/db_admin_tools.inc.php");
$sql = "SELECT * FROM webseite WHERE MID='$MID'";
if ( !$res = mysql_query($sql) )
{
echo "Abfrage fehlgeschlagen. Bitte versuchen Sie es später noch
einmal." .mysql_error();
exit;
}
else
{
$ds = mysql_fetch_row($res);
$MID = $ds[0];
$seiten_titel = $ds[1];
$text = $ds[2];
include_once ("standardseite.form.php");
exit;
}
}
</schnipp>
Da das alles in "standardseite.form.php" enthalten ist, wird obiges
"elseif" natürlich wieder aufgerufen ... :-(
<Michael Motzkus/>
php::bar PHP Wiki - Listenarchive