Jump to content

Blog Server Help


yo10208

Recommended Posts

I am building a blog server with dreamweaver and phpMyAdmin so I have an wpindex.php page showing the topics and a topic page, wptopic.php showing only that topic. I need to create a link from the wpindex.php to wptopic.php.

The link is:

wptopic.php?ID=<?php echo $row_Recordset1['ID']; ?>

*Recordset1 is a query of the blog post table*

However, when I tested it, all post's link are  'wptopic.php?ID=1'.

How can I fix it?

 

Also, in the wptopic.php page, there is a place to show comments.

However, when there is no comment, there is still a 'says' word in the page. how can I make the 'says:' disappear when there is no comments?

The Code:

<p>Comment:</p>
            <p align="right"><?php echo $row_Recordset2['comment_author']; ?>says:</p>
            <p align="right"><?php echo $row_Recordset2['comment_content']; ?>

*Recordset2 is a query of the blog reply table*

 

Thks!

Link to comment
https://forums.phpfreaks.com/topic/234816-blog-server-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.