MySQL Forums
Forum List  »  PHP

Re: Newbie ...Debugging? question.
Posted by: billy nale
Date: July 16, 2016 07:54PM

here is my index page...


<?php include 'database.php' ; ?>
<?php
//Createe Select Query
$query = "SELECT * FROM placement";
$shouts = mysqli_query($con, $query);
?>

<!DOCTYPE html>
<html>
<head>
<meta charset="otf-8" />
<title>SHOUT IT!</title>
<link rel="stylesheet" href="css/style.css" type="text/css" />
</head>
<?php echo $row['name'] ?>
<body>
<div id="container">
<header>
<h1>Placement</h1>
</header>
<div id="shouts"">
<ul>
<?php while ($row = mysqli_fetch_assoc($placement)) : ?>

<li class="shout"><span><?php echo $row['time'] ?>: </span><?php echo $row['name'] ?>: <?php echo $row['message'] ?></li>
<? endwhile; ?>
</ul>
</div>
<div id="input">
<form method="post" action="process.php">
<input type="text" name="user" placeholder="Enter your name." />
<input type="text" name="message" placeholder="A message." />
<br />
<input class="shout-btn" type="submit" name="submit" value="Shout It Out" />
</form>
</div>
</body>
</html>

Options: ReplyQuote


Subject
Written By
Posted
Re: Newbie ...Debugging? question.
July 16, 2016 07:54PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.