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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.