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 } Link to comment https://forums.phpfreaks.com/topic/77240-solved-spot-the-error/ 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 Link to comment https://forums.phpfreaks.com/topic/77240-solved-spot-the-error/#findComment-391047 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. Link to comment https://forums.phpfreaks.com/topic/77240-solved-spot-the-error/#findComment-391049 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 Link to comment https://forums.phpfreaks.com/topic/77240-solved-spot-the-error/#findComment-391051 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.