graham23s Posted June 30, 2007 Share Posted June 30, 2007 Hi Guys, in this piece of code: // Figure out the total number of results in DB: $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM `uploaded_files`"; if($category_id > 0) { echo $total_results .= " WHERE `cat_id`='$cat_id'"),0); } i'm getting: syntax error, unexpected ';' can anyone tell me what i need to do to fix this? thanks guys Graham Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted June 30, 2007 Share Posted June 30, 2007 <?php // Figure out the total number of results in DB: $total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM `uploaded_files`")); if($category_id > 0) { echo $total_results .= " WHERE `cat_id`='$cat_id'\"),0)"; } ?> Quote Link to comment Share on other sites More sharing options...
graham23s Posted June 30, 2007 Author Share Posted June 30, 2007 Thanks pocu:) Graham 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.