Auto commit: 2025-12-18T00:07:44.665Z
This commit is contained in:
parent
0ba5997fad
commit
ec07369670
25
index.php
25
index.php
@ -25,6 +25,25 @@
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
$debug_current_category_id = $current_category_id ?? "NULL";
|
||||
$debug_current_category_name = $current_category_name ?? "Not Set";
|
||||
$debug_current_links_count = isset($current_links) ? count($current_links) : 0;
|
||||
$debug_sql_query = "SQL Query not set yet.";
|
||||
if (isset($link_stmt) && $link_stmt instanceof PDOStatement) {
|
||||
$debug_sql_query = $link_stmt->queryString;
|
||||
}
|
||||
?>
|
||||
<pre style="background-color: #fdd; border: 1px solid #f99; padding: 10px; margin: 10px;">
|
||||
DEBUG INFORMATION:
|
||||
GET Parameters: <?php echo htmlspecialchars(json_encode($_GET, JSON_PRETTY_PRINT)); ?>
|
||||
Current Category ID: <?php echo htmlspecialchars($debug_current_category_id); ?>
|
||||
Current Category Name: <?php echo htmlspecialchars($debug_current_category_name); ?>
|
||||
Current Links Count: <?php echo htmlspecialchars($debug_current_links_count); ?>
|
||||
SQL Query for links: <?php echo htmlspecialchars($debug_sql_query); ?>
|
||||
</pre>
|
||||
|
||||
<?php session_start(); ?>
|
||||
|
||||
<?php
|
||||
require_once __DIR__ . '/db/config.php';
|
||||
@ -70,11 +89,7 @@ if ($current_category_id) {
|
||||
}
|
||||
$current_links = $link_stmt->fetchAll();
|
||||
|
||||
error_log("DEBUG: GET Parameters: " . json_encode($_GET));
|
||||
error_log("DEBUG: Current Category ID: " . ($current_category_id ?? "NULL"));
|
||||
error_log("DEBUG: Current Category Name: " . $current_category_name);
|
||||
error_log("DEBUG: SQL Query for links: " . ($current_category_id ? $link_stmt->queryString : "All Categories Query"));
|
||||
error_log("DEBUG: Current Links Count: " . count($current_links));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user