jarv Posted October 23, 2010 Share Posted October 23, 2010 hi, I have just used teh pagination from this site: http://papermashup.com/easy-php-pagination/ all is working ok apart from I get an error: Notice: Use of undefined constant num - assumed 'num' in D:\retroandvintage.co.uk\wwwroot\default.php on line 207 line 207: $total_pages = $total_pages[num]; Please help? here is my site: http://www.retroandvintage.co.uk/default.php?page=5 Quote Link to comment https://forums.phpfreaks.com/topic/216641-undefined-constant-num/ Share on other sites More sharing options...
kayess2004 Posted October 23, 2010 Share Posted October 23, 2010 Hi Jarv, Try this: $total_pages = $total_pages['num']; Hope this helps. Quote Link to comment https://forums.phpfreaks.com/topic/216641-undefined-constant-num/#findComment-1125559 Share on other sites More sharing options...
trq Posted October 23, 2010 Share Posted October 23, 2010 Strings need to be surrounded by quotes in php, string indexes within an array are no different. Quote Link to comment https://forums.phpfreaks.com/topic/216641-undefined-constant-num/#findComment-1125562 Share on other sites More sharing options...
jarv Posted October 24, 2010 Author Share Posted October 24, 2010 thanks! Quote Link to comment https://forums.phpfreaks.com/topic/216641-undefined-constant-num/#findComment-1125828 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.