teng84 Posted November 13, 2007 Share Posted November 13, 2007 there is an error in this code if (isset($_GET['sorted_by'])){ switch($_GET['sorted_by']){ case "id": $sorted_by = " ORDER BY GEN_LIST.LISTINGID "; break; case"title": $sorted_by = " ORDER BY GEN_LIST.TITLE "; break; case"description": $sorted_by = " ORDER BY GEN_LIST.SHORTDESC "; break; case"category": $sorted_by = " ORDER BY GEN_LIST.CATEGORY "; break; case"subcategory": $sorted_by = " ORDER BY GEN_LIST.SUBCATEGORY "; break; case"posted by": $sorted_by = " ORDER BY GEN_LIST.USER "; break; case"date posted": $sorted_by = " ORDER BY GEN_LIST.DATEADDED " break; case"active": $sorted_by = " ORDER BY GEN_LIST.RK, GEN_LIST.DATEADDED "; break; case"inactive": $sorted_by = " ORDER BY GEN_LIST.RK DESC, GEN_LIST.DATEADDED "; break; default: $sorted_by = $def_sort; break; }//end switch } Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted November 13, 2007 Share Posted November 13, 2007 Missing semi-colon on <?php $sorted_by = " ORDER BY GEN_LIST.DATEADDED " ?> Ken Quote Link to comment Share on other sites More sharing options...
teng84 Posted November 13, 2007 Author Share Posted November 13, 2007 haha thanx... i cant turn error reporting its live. Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted November 13, 2007 Share Posted November 13, 2007 When you're debugging, you need to turn error reporting on or debug on a test server. Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.