hier mal mein code
<?Php
include("header.php");
$wysiwyg = 0;
$wysiwyg_topbox = 0;
include_once('spaw/spaw_control.class.php');
global $admin, $prefix, $multilingual, $user_prefix;
GraphicAdmin();
if (!$GLOBALS['wysiwyg'] || !$GLOBALS['wysiwyg_topbox']) {
$content = str_replace("<br />", "\n", $content);
$content = str_replace("<br>", "\n", $content);
}
OpenTable();
echo "<h1><center>Yout Account Navi Code</center></h1>";
echo "<br><br>";
#echo "<form action=\"admin.php?op=account_navi&action=save\" method=\"post\">";
echo "<form action=\"admin.php\" method=\"post\">";
$query = mysql_query("SELECT * FROM {$user_prefix}_account_menue");
while($row = mysql_fetch_assoc($query)) {
$content=$row['linkname'];
}
if ($GLOBALS['wysiwyg'] && $GLOBALS['wysiwyg_topbox']) {
$sw = new SPAW_Wysiwyg('content', $content, _DOC_LANGUAGE, $GLOBALS['wysiwyg_toolbar'], $GLOBALS['wysiwyg_btnset'], '100%', '350');
$sw->show();
} else {
echo "<textarea name=\"content\" rows=\"15\" cols=\"60\">" . htmlspecialchars($content) . "</textarea>";
}
echo "<input type=\"hidden\" name=\"op1\" value=\"savemsg\">";
echo "<input type=\"submit\" value=\"Speichern\">";
echo "</form>";
/*
@author: akeil production
*/
function save() {
# $content = mysql_real_escape_string($_POST['content']);
# $query = mysql_query("INSERT INTO tabelle (feld) VALUES ('".$content."')");
echo('save()');
$content = mysql_real_escape_string($_POST['content']);
$query = mysql_query("UPDATE {$user_prefix}_account_menue SET linkname = '".$content."' WHERE id = '1'");
echo mysql_error();
if($query == true) {
echo('erfolgreich eingetragen');
}
else {
echo('fehler beim Eintragen');
}
}
function account_navi()
{
# global $prefix;
# $title = mxAddSlashesForSQL(($title));
# if (!$GLOBALS['wysiwyg'] || !$GLOBALS['wysiwyg_topbox']) {
# $content = str_replace("\n", "<br />", $content);
# }
# $content = mxAddSlashesForSQL(($content));
# $result = sql_query("update " . $prefix . "_account_menue set linkname='$content' ");
}
CloseTable();
switch ($op) {
case "account_navi":
break;
}
include("footer.php");
?>
vielleicht kann mir einer helfen
Gruß
Mattes