dcblogdev / dcblogcomments

2 stars 0 forks source link

creating-a-blog-from-scratch-with-php-part-9-cover-image #18

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

Creating a blog from scratch with PHP - Part 9 Cover Image - DC Blog

In this part, we will add a cover photo to the blog posts.

https://dcblog.dev/creating-a-blog-from-scratch-with-php-part-9-cover-image

webchrea commented 4 years ago

Demo and link https://demos.dcblog.dev/simpleblog-coverphoto/admin dont wok please see that

vizaganand commented 4 years ago

I have followed upto this steps (part 9 cover page). The issues are 1) add_post.php is not saving the post submitted. If course I can add the post via phpadmin on the server 2) when i am clicking on blog title or read more, it is not going to respective blog post. 3) Pagination is showing at the bottom of posts listing, but not going to second page when clicked on page 2

Relevant portion of .htaccess file is as follows:

for seo urls

RewriteEngine On RewriteBase /webdesigning-blog/

RewriteRule ^c-(.)$ catpost.php?id=$1 [L] RewriteRule ^t-(.)$ tagpost.php?id=$1 [L] RewriteRule ^a-(.)-(.)$ archives.php?month=$1&year=$2 [L]

RewriteCond %{REQUEST_FILENAME} !-d [NC] RewriteCond %{REQUEST_FILENAME} !-f [NC] RewriteRule ^(.*)$ viewpost.php?id=$1 [QSA,L]

The blog is uploaded at https://www.kambalainfotech.com/webdesigning-blog/

My email id is vizaganand@gmail.com

Please guide

vizaganand commented 4 years ago

in edit_post.plhp instead of 'blog_posts_seo', it is mentioned as 'blog_posts' in several places which is throwing error.