$name_entered= $_POST['Üye Adı'];
$comment_entered= $_POST['Yorum'];
$table= $_POST['webpage'];
$date= date("m-d-Y");
$user = "user";
$password = "password";
$host = "host";
$dbase = "database";
$connection= mysql_connect ($host, $user, $password);
if (!$connection)
{
die ('Could not connect:' . mysql_error());
}
mysql_select_db($dbase, $connection);
$val = mysql_query("select 1 from $table");
if($val !== FALSE)
{
if ((!empty($Üye Adı_entered)) && (!empty($yorum_entered)))
{
mysql_query("INSERT INTO $table (Üye Adı, tarih, yorum)
VALUES ('$name_entered', '$Tarih', '$yorum_entered')");
}
$result= mysql_query( "SELECT * FROM $table ORDER BY ID DESC" )
or die("SELECT Error: ".mysql_error());
while ($row = mysql_fetch_array($result)){
$name_field= $row['Üye Adı'];
$date_field= $row['Tarih'];
$comment_field= $row['yorum'];
echo "