stiffy
Erfahrenes Mitglied
juhu, wie versprochen, hier bin ich wieder mit ner saubescheuerten frage ^^
also hier ertma der code:
so nu mein problem: es wird einfach nix in die tabelle geschrieben. einer ne ahnung?
also hier ertma der code:
PHP:
<?php
session_start ();
echo "<html>
<head><link rel='stylesheet' href='radon.css' type='text/css'>
<title>. be-radon . control panel</title>
</head>
<table width=100% height=100%><tr><td align=center valign=middle>";
if ((session_is_registered ("user_eingeloggt")) AND ($user_eingeloggt)) {
if($action == "entry"){
$content = nl2br(stripslashes(htmlentities($content)));
if($url1 == "http://"){
$url1 = "";}
if($url2 == "http://"){
$url2 = "";}
if($url3 == "http://"){
$url3 = "";}
include("sqldata.php");
mysql_connect($sqlhost, $sqluser, $sqlpass);
mysql_select_db($sqlbase);
$query = "INSERT INTO news (title, type, content, poster, email, link1, link2, link3, url1, url2, url3) VALUES ('$title', '$type', '$content', '$user', '$link1', '$ink2', '$link3', '$url1', '$url2', '$url3')";
mysql_query($query);
echo ". entry sucessfully added - <a href=intern.php?SID=$SID>back</a>";
}
else{
echo"<form action='$PHP_SELF?SID=$SID&action=entry' method=post>
<table>
<tr><td>subject:</td><td>type:</td></tr>
<tr><td><input type=text name=title> </td><td>
<select name=type style='font-family: verdana,sans-serif; font-size:9; background-color: #000000; color: #FFFFFF;'>
<option value=radon>radon</option>
<option value=cs>cs</option>
<option value=wc3>wc3</option>
<option value=esl>esl</option>
<option value=cb>cb</option>
</select></td></tr>
</table><br>
content:<br>
<textarea name=content rows=7 cols=61></textarea><br><br>
<table>
<tr><td>url:</td><td>name:</td></tr>
<tr><td><input type=text name=url1 value='http://'></td><td><input type=text name=link1></td></tr>
<tr><td><input type=text name=url2 value='http://'></td><td><input type=text name=link2></td></tr>
<tr><td><input type=text name=url3 value='http://'></td><td><input type=text name=link3></td></tr>
</table><br><br>
<input type=submit value=send> <input type=reset value=reset></form>";
}
} else {
echo ". nice try ;P";
}
echo "</td></tr></table>
</html>";
?>
so nu mein problem: es wird einfach nix in die tabelle geschrieben. einer ne ahnung?