this is a test blog


short description

kshitish


  1. Views Count Fixed:

    • Replaced $count = $count++; with $updatedViews = $currentViews + 1.
  2. Proper select and getResult Handling:

    • After fetching views, ensured the result is properly accessed as an associative array.
  3. Improved Error Handling:

    • Added a specific check for when the blog post is not found.
  4. Correct update Method Usage:

    • Passed where condition as a string ("id = $id"), matching the update method implementation.
  5. Enhanced Readability:

    • Simplified and organized the logic flow for easier debugging and future updates.

Blog Thumbnail
1 month ago
Hello world

Test Description...

By: Kshitish Barman

Blog Thumbnail
1 month ago
ANothter post

short des...

By: kshitsh

Blog Thumbnail
1 month ago
2nd Post

short description...

By: Kshitish

POPULAR ARTICLES
Blog Thumbnail
1 month ago
this is a test blog

short description...

By: kshitish

Blog Thumbnail
1 month ago
2nd Post

short description...

By: Kshitish

Blog Thumbnail
1 month ago
ANothter post

short des...

By: kshitsh

Blog Thumbnail
1 month ago
Hello world

Test Description...

By: Kshitish Barman