brown2005 Posted December 7, 2007 Share Posted December 7, 2007 is this below code ok... as its not working so i presume its not function Count($type,$topic) { } Quote Link to comment Share on other sites More sharing options...
phpknight Posted December 7, 2007 Share Posted December 7, 2007 Can you be more specific? BTW, it is never a good idea to name a function something like count which might be used by the system. Check all your braces, semicolons, etc. Quote Link to comment Share on other sites More sharing options...
PHP_PhREEEk Posted December 7, 2007 Share Posted December 7, 2007 <?php function Count($type, $topic) { // do something } is invalid, as phpknight pointed out, count() is already a php built-in function. <?php function thisCount($type, $topic) { // do something } would be perfectly valid. Be aware you are forcing those two arguments to be sent with the request to the function. PhREEEk Quote Link to comment Share on other sites More sharing options...
brown2005 Posted December 7, 2007 Author Share Posted December 7, 2007 o yeah.. omg.. why didnt i spot that.. now i feel stupid. thanks mate Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted December 7, 2007 Share Posted December 7, 2007 Checking your web server log for errors and/or turning on full php error reporting in php.ini or a .htaccess file would have exposed the function naming problem. 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.