$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 04:29 AM.
Reason: Please use [php] wrappers when posting PHP code.
The only thing apparent in the code you posted is that $HTTP_GET_VARS can be disabled in php 5, using the register_long_arrays setting.
Change any occurrence of $HTTP_GET_VARS to $_GET
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???