below is the function.
You can also check live demo here.
Download pagination
Planet Source Code(vb6.0, vb.net, Java, Php, Asp, Excel, Access)
I've research about htaccess on how to create a friendly URL like http://www.emisyl.com/blog instead of http://www.emisyl.com?page=blog.
All you need to do is to change some part of httpd.conf, please see below
Options FollowSymLinks AllowOverride None
to
Options FollowSymLinks AllowOverride All
And can try creating file name .htaccess and place it inside the your website folder or test folder.
One day i was assigned to update a website which created by my mentor in php, while updating the some parts of the function I've found a 1 line of which I've never encountered before in my PHP life, so i asked him if what is the purpose of this line of code then he said it is a shortcut If statement in php, i placed the sample line of codes below, please check.
$authenticated = true;// 1 standard if-else statementif ($authenticated){echo 'YES';}else{echo 'NO';}// same with 1if ($authenticated) { echo 'YES'; } else { echo 'NO'; }// [2] lil bit shortcutif ($authenticated)echo 'YES';elseecho 'NO';// 3 the shortcutecho $result = ($authenticated) ? 'YES' : 'NO';