This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

HELP!!! move comments pages
#1

I moved some comments between different pages (admin/menage/comments/edit/page)..and they are all gone, I can't see no one..and all web page returns error Angry

---------
Undefined variable: cmtx_mysql_table_prefix in /member/.../comments/most_comments.php on line 8 (and 12)

PHP Code:
<?php 
8
)$comments = mysql_query("SELECT `page_id`, COUNT(`page_id`) AS `total` FROM `" . $cmtx_mysql_table_prefix . "comments` WHERE `is_approved` = '1' GROUP BY `page_id` ORDER BY `total` DESC LIMIT 1");

12)$page_query = mysql_query("SELECT * FROM `" . $cmtx_mysql_table_prefix . "pages` WHERE `id` = '" . $comment["page_id"] . "'");
$page = mysql_fetch_assoc($page_query);
----------
Undefined variable: cmtx_mysql_table_prefix in /member/.../comments/recent_comments.php
PHP Code:
<?php 
8
)$comments = mysql_query("SELECT * FROM `" . $cmtx_mysql_table_prefix . "comments` WHERE `is_approved` = '1' ORDER BY `dated` DESC LIMIT 5");
12) $page_query = mysql_query("SELECT * FROM `" . $cmtx_mysql_table_prefix . "pages` WHERE `id` = '" . $comment["page_id"] . "'");

$page = mysql_fetch_assoc($page_query);

how can I fix it... if I canHuh

tks
Reply
#2

solved by myself..moving pages there was a conflict in DB
Quote:Identifier>>> .name>>>> ID
Angel basically a pages replica ..(name and ID)..deleting double.. all ok.. but that scared ..!
thanks anyway
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Tim
06-Jan-2021, 08:56 PM
Last Post by Tim
18-Oct-2019, 11:45 AM
Last Post by Gevill
23-Jul-2019, 01:17 AM
Last Post by Steven
16-Feb-2018, 09:15 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)