1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

Switch table naming vars to constants

git-svn-id: file:///svn/phpbb/trunk@21 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2001-02-23 00:22:10 +00:00
parent acfee8f3f1
commit 8f193b2a39
5 changed files with 34 additions and 34 deletions

View File

@@ -41,7 +41,7 @@ include('page_header.'.$phpEx);
$template->set_block("body", "catrow", "cats");
$template->set_block("catrow", "forumrow", "forums");
$sql = "SELECT * FROM $categories_table ORDER BY cat_order";
$sql = "SELECT * FROM ".CATEGORIES_TABLE." ORDER BY cat_order";
if(!$result = $db->sql_query($sql))
{
error_die($db, QUERY_ERROR);
@@ -57,7 +57,7 @@ if($total_rows)
"PHP_SELF" => $PHP_SELF,
"CAT_DESC" => stripslashes($rows[$x]["cat_title"])));
$sub_sql = "SELECT f.* FROM $forums_table f WHERE f.cat_id = '".$rows[$x]["cat_id"]."' ORDER BY forum_id";
$sub_sql = "SELECT f.* FROM ".FORUMS_TABLE." f WHERE f.cat_id = '".$rows[$x]["cat_id"]."' ORDER BY forum_id";
if(!$sub_result = $db->sql_query($sub_sql))
{
error_die($db, QUERY_ERROR);