Friday, January 10, 2014

PHP code to View comments

PHP code to View comments in web site


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>

</head>
<body>
<?php
  if (isset($_GET['id']))
{
$con = mysql_connect("localhost", "root", "");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
mysql_select_db("argie_tamera", $con);
$messages_id = $_GET['id'];
$result2 = mysql_query("SELECT * FROM comment where comment_id ='$messages_id'");
while($row = mysql_fetch_array($result2))
  {
  echo $row['content'];
  }
}
?>

</body>
</html>

Related Posts:

  • Php Code For Captcha-Code Php Code For Captcha-Code <?php  session_start(); //Settings: You can customize the captcha here $image_width = 120; $image_height = 40; $characters_on_image = 6; $font = './monofont.ttf'; //The char… Read More
  • Registration form code<?php     include "settings.php"; ?> <html> <head> <title> REgistration Form</title> </head> <body>     <form name="information" action="user.php" method="post… Read More
  • Design Shapes Mobile phone shape in html with css file free download mobile shape file : Download … Read More
  • PHP USer Front Page PHP code of user front page after login <?php include 'settings.php'; ?> <html> <head> <title></title> <style type="text/css"> #container { background: scroll; background-color: #c… Read More
  • Login Form Code in PHP<?php include "settings.php"; ?> <html> <head> <title>Login System</title> <style type="text/css"> #container { position: relative; width: 500px; margin: 0px auto; height… Read More

0 comments:

Post a Comment