- Impact
- 3
Alright so I've been trying to get PHP to display some data from a table in my database. I want it to look like this: http://i53.tinypic.com/2hzjo5i.png
but all im getting is this: http://i56.tinypic.com/1znoc45.jpg
and this is the PHP portion of my code
Thanks,
Archey
but all im getting is this: http://i56.tinypic.com/1znoc45.jpg
and this is the PHP portion of my code
Code:
<?php
$queryTitle = mysql_query("SELECT title FROM posts");
$queryDate = mysql_query("SELECT date FROM posts");
$queryBody = mysql_query("SELECT body FROM posts");
while($rowTitle = mysql_fetch_array($queryTitle)){
echo "<h2>" . $rowTitle['title'] . "</h2>";
echo "<br />";
}
while($rowDate = mysql_fetch_array($queryDate)){
echo "<h4>" . $rowDate['date'] . "<h4>";
echo "<br />";
}
?>
Thanks,
Archey