$name=$_GET['name'];
$message=$_GET['message'];
?>
// if ((empty($name))and(empty($message))) {}
// else
// {
// print("");
// }
?>
ShoutBox4Mikescher
if ((empty($name))and(empty($message))) {}
else
{
$date = date('Y-m-d G:i:s');
$time = date('G:i:s');
$ip = getenv("REMOTE_ADDR");
$adddb = mysql_connect("rdbms.strato.de","U451718","Datenbank" )or die(mysql_error());
mysql_select_db("DB451718",$adddb) or die(mysql_error());
$addsql="INSERT INTO shoutbox_log (name, date, time, message, ip) VALUES ('$name', '$date', '$time', '$message', '$ip')";
echo mysql_error ($adddb);
mysql_query($addsql, $adddb);
echo mysql_error ($adddb);
}
?>
$db = mysql_connect("rdbms.strato.de","U451718","Datenbank" ) or die(mysql_error());
mysql_select_db("DB451718",$db) or die(mysql_error());
$sql="SELECT * FROM shoutbox_log ORDER BY id DESC";
$res=mysql_query($sql, $db) or die(mysql_error());
while ( $row=mysql_fetch_object($res) )
{
echo mysql_error ($db);
print("$row->name $row->time:
$row->message");
print("
");
}
echo mysql_error ($db);
?>