CrankBerry Blog Title

PHP Postings

2009


(1) Comment

Random code and password generator in PHP

Categories :: PHP

Sometimes when you're interacting with users you need to generate a random string of code or password. For example, a user is signing up for a service and you decided to give them some random password to start with, that's what I'm talking about. Here I have a quick script which allows you to generate random code with a defined length.

2009


(5) Comments

Simple dynamic PHP sliding pagination

Categories :: PHP

The other day I was working on a website drawing out a content well over 400 rows of data. Displaying the data all on one page is a lot of stress for the user so I made a quick pagination script. By displaying 20 results per page would end up with 20 separate pages. Imaging laying out 1 to 20 across your website (ugly eh?) well it gets worst. Imagine this database doubles! Yes! We're now laying 1 to 40 across our website. So I made this simple dynamic slider in which it only displays a certain amount of pages to choose from and as you travel further it will list more pages.

You are currently browsing the archives for the PHP category.

Categories


Archives

Recent Blogs