Location: PHPKode > projects > ExPHPresso > exPHPresso-0.0.2/show_addcomments.php
<?php include("header.inc.php"); ?>
<?php include("config.php"); 
	 if ((!$coffee_subject) || (!$coffee_details)) {
	header ( "Location: http://localhost/add_comments.php");
	exit;
}
$table_name = "comments";

		$sql= "INSERT INTO comments 
		(id,coffee_subject,coffee_details,coffee_comments)
		VALUES
		(\"\",
		\"$coffee_subject\",\"$coffee_details\",\"$coffee_comments\")
		";
		$result= mysql_query($sql,$connection) or die("Couldn't execute query!Check your input.");
?>
<html>
<head>
<title><? print $site_name; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="main.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table border="0" cellspacing="0" cellpadding="0" width="95%">
  <tr> 
    <td width="<? print $side_nav_table; ?>" valign="top">&nbsp; </td>
    <td rowspan="2" width="10"><img src="images/spacer.gif" width="14" height="23"></td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td width="<? print $side_nav_table; ?>" valign="top" height="22"> 
      <?php include("left.inc.php"); ?>
    </td>
    <td width="" height="22"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor="#000000">
        <tr> 
          <td height="2"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FF9900" height="1">
              <tr> 
                <td><img src="fake_spacer.gif" width="1" height="1"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="2" bgcolor="e0e0e0">
              <tr> 
                <td align="center" colspan="2" class="tbl_hdr" ><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>THANKS 
                  FOR THE SUBMISSION</b></font></td>
              </tr>
              <tr> 
                <td class="tbl_info" width="1%"><img src="images/spacer.gif" width="8" height="8"> 
                </td>
                <td class="tbl_info" width="99%" valign="top"> 
                  <p> <font face="Verdana, Arial, Helvetica, sans-serif" size="2">The 
                    following information was added to 
                    <? echo "$table_name"; ?>
                    <br>
                    </font></p>
                  <hr noshade>
                  <font face="Verdana, Arial, Helvetica, sans-serif" size="2"><br>
                  <? echo "&#149;<b>$coffee_subject</b>"; ?>
                  <br>
                  <? echo "$coffee_details"; ?>
                  <br>
                  <? echo "$coffee_comments"; ?>
                  </font> </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<?php include("footer.inc.php"); ?></body>
</html>
Return current item: ExPHPresso