Filed Under: Web Tutorials
Many CRUD applications display long lists of search results- perhaps showing all rows in a table. Pagination, or splitting the search results into pages, is a great way to assist users so that they don't get a mile-long list of items and saves database processing power, too! Here is a simple method for paginating search results... Filed Under: Web Tutorials
Here is a simple function to recursively analyze a given directory and print hyperlinks to all of the files in each directory. Directory names are printed but not hyperlinked. \r\n"; } } } closedir($handle); } } ?>
This function should work on both *nix and Windows hosts.
Filed Under: Web Tutorials
Here's a short script which can be used to generate dynamic menus and change the CSS style of a given menu element based on the current page. New elements can be added to the navigation menu by adding them to the $menu array; this array can be easily generated via database calls or configuration files. When generating the menu, a different class name will be set for that menu item corresponding to the current page. This isn't a fool-proof method and works best for small sites with simple navigation (i.e., every page has a navigation link).-
$value) { ?>




