![]() | |||||||
I get this error!!! i have this code, i tried to put it with my code but it get some error. Code:
the ERROR is : Notice: Use of undefined constant num - assumed 'num' $total_pages = $total_pages[num]; i dont know what is that mean?? |
It isn't an error, just a "Notice" :) It's really $total_pages['num'] (Note, "num" is a String) In php, you can definite constants Variables are prefixed with the $, but constants have no prefix. Fortunately, php is smart enough to realize that in $total_pages[num], since you have no constant named num, you must mean the string 'num'. Bruce |
When you do not use quotes: $var[num] it is assumed to be an array. |
Bruce, you are correct :bingo: Use $total_pages['num'] instead of $total_pages[num] |
| All times are GMT -7. The time now is 06:46 PM. |
Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0