blog-details.php
78
79
if ($row) {
80
// Increment the views count in the database
81
try {
82
$db->prepare("UPDATE blogs SET views = views + 1 WHERE id = ?")->execute([$row['id']]);
83
} catch (Exception $e) {}
84
85
$cat_raw = trim($row['category'] ?? 'Advertising & Marketing');
86
➜ $cat_meta = get_blog_cat_meta($cat_raw);
87
$cat_slug = $cat_meta['slug'];
88
$cat_color = $cat_meta['color'];
89
$cat_icon = $cat_meta['icon'];
90
91
$date_str = !empty($row['published_at']) ? date('F d, Y', strtotime($row['published_at'])) : date('F d, Y', strtotime($row['created_at']));
92
$img_src = !empty($row['image_url']) ? get_image_url($row['image_url']) : get_image_url('assets/images/why-us.jpeg');
93
94
// Calculate Word Count & Accurate Reading Time
95
$word_count = str_word_count(strip_tags($row['content'] ?? ''));
Call Stack Trace
0 frames
#0
[Exception Origin]
in /home/alienads/public_html/Blog/blog-details.php at line 86
| URL | /blog/future-of-advertising-in-india-2026 |
|---|---|
| HTTP Method | GET |
| $_GET Parameters | { "slug": "future-of-advertising-in-india-2026" } |
| $_POST Parameters | (empty) |
| Session ID | (none) |
| PHP Version | 7.3.33 |
|---|---|
| Operating System | Linux (4.18.0-553.129.1.el8_10.x86_64) |
| Server Web Server | Apache |
| Document Root | /home/alienads/public_html |
| User Agent | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected]) |