View Single Post
  #1 (permalink)  
Old 03-05-07, 02:16 AM
nomirock nomirock is offline
Newbie Coder
 
Join Date: Mar 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Need help with jokescript

i have php joke script. but when i click on my next page to preview more jokes it redirects me to index page
here is the jokes_category.php

PHP Code:

<?
include ("config_file.php");
include(
DIR_LNG.'jokes_category.php');
$display_nr $display_nr_joke_category;
$type TEXT_JOKE_ON;
$jokes_file 1;
$database_table_name1 $bx_db_table_joke_categories;  
$database_table_name2 $bx_db_table_jokes;            

$condition " where ".($HTTP_GET_VARS['cat_id'] ? " category_id='".$HTTP_GET_VARS['cat_id']."' and " "")." validate='1' and slng='".$slng."' ORDER BY rating_value DESC ";
$SQL "select * from $database_table_name2 ".$condition;

if (
$HTTP_GET_VARS['cat_id'])
{
    
$show_joke_categories="yes";
}

include (
DIR_SERVER_ROOT."header.php");

if (!
$HTTP_GET_VARS['cat_id'])
{
    include (
DIR_FORMS."jokes_category_form.php");    
}
else
{
    include (
DIR_FORMS."jokes_category_with_jokes_form.php");
}

include (
DIR_SERVER_ROOT."footer.php");
?>
PLz help me

Last edited by Nico; 03-05-07 at 03:29 AM. Reason: Please use [php] wrappers when posting PHP code.
Reply With Quote