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 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. 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. 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! Link to comment https://forums.phpfreaks.com/topic/216641-undefined-constant-num/#findComment-1125828 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.