Stotty Posted November 15, 2008 Share Posted November 15, 2008 Well im attempting this I post then it makes it message.php?id=number of post eg message.php?id=1 I want in the title Name of thread - Cole Forums My Message.php is <html> <head> <title><?php echo "HELP PLZ PHP FREAKS"; ?> - Cole Forums</title> </head> <body> <p> <?php include "connect.php"; //mysql db connection here $id=$_GET['id']; print "<link rel='stylesheet' href='style.css' type='text/css'>"; print "<A href='index.php'>Back to main forum</a>-<A href='post.php'>New Topic</a>-<A href='reply.php?id=$id'>Reply<br>"; print "<table class='maintable'>"; print "<tr class='headline'><td width=20%>Author</td><td width=80%>Post</td></tr>"; $gettopic="SELECT * from forumtutorial_posts where postid='$id'"; $gettopic2=mysql_query($gettopic) or die("Could not get topic"); $gettopic3=mysql_fetch_array($gettopic2); print "<tr class='mainrow'><td valign='top'>$gettopic3[author]</td><td vakign='top'>Last replied to at $gettopic3[showtime]<br><hr>"; $message=strip_tags($gettopic3['post']); $message=nl2br($message); print "$message<hr><br>"; print "</td></tr>"; $getreplies="Select * from forumtutorial_posts where parentid='$id' order by postid desc"; //getting replies $getreplies2=mysql_query($getreplies) or die("Could not get replies"); while($getreplies3=mysql_fetch_array($getreplies2)) { print "<tr class='mainrow'><td valign='top'>$getreplies3[author]</td><td vakign='top'>Last replied to at $getreplies3[showtime]<br><hr>"; $message=strip_tags($getreplies3['post']); $message=nl2br($message); print "$message<hr><br>"; print "</td></tr>"; } print "</table>"; ?> </p> <p align="right">Powered By Cole</p> </body> </html> How would i go about this ? Help will be greatfull Thanks in Advance Link to comment https://forums.phpfreaks.com/topic/132855-solved-i-have-no-idea-my-custom-forums/ Share on other sites More sharing options...
Stotty Posted November 15, 2008 Author Share Posted November 15, 2008 If You need any other info my msn is [email protected] Link to comment https://forums.phpfreaks.com/topic/132855-solved-i-have-no-idea-my-custom-forums/#findComment-690937 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.