/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php if(!$db) $id = $_GET['id']; $fid="SELECT * from blog where blogid='$id'"; $blogid = $fid3['blogid']; if ($blogid > 0.1) echo ""; else ?> <?php //mysql database connection $dbhost='Database Host'; $dbuser='Your Username'; $dbpass='Your Password'; $dbtable='Your Table Name'; $id=$_GET['id']; $fblogid=mysql_query("SELECT * from blog where blogid='$id'") or die("Could not load the entries."); $message=($fblogid2['message']); $date=($fblogid2['date']); print ""; $fshow=mysql_query("Select * from blog where blogid='$id' order by blogid asc") or die("Could not find blog posts."); { $message=($fshow2['message']); print "$message<br/><hr><p align='right'>Posted on: $date</p><br>"; } ?>