Php > Site Navigation
Page Scroller
Page Scroller #database configuration $db_user = "root"; $db_pass = "pass"; $db_name = "phpMember"; $db_host = "localhost"; mysql_pconnect($db_host, $db_user, $db_pass) or die("Unable to connect to SQL server"); mysql_select_db($db_name) or die("Unable to select database"); #page scroller configuration $offset+=0; $item_perpage= 2; #----change this to define how many item per page $prev= $offset-$item_perpage; $next= $offset+$item_perpage; if ($prev <= 0) $prev=0; #query configuration $tbl_search = "country"; $field="name "; $query="SELECT $field FROM $tbl_search WHERE $field LIKE '%$keyword%' LIMIT $offset, $item_perpage"; #----modify the where clause to fit your query need ?>
CyberGL Page Scroller
Query:
#query process $data=mysql_query($query); $no=1; while ($result=mysql_fetch_array($data)) { ?> NO: .
$no++; } #page scroller ?>
<< PREV
NEXT >>
Php Codes
Algorithms
Arrays
Authentication
Calendar
Code Snippets
Programs
Content Manage
Contest Related
Cookies
Credit Cards
DBase Related
Databases
Date Time
Directories
E-Mail
Errors
File
File System
Forms
Handling
Graphics
HTML and PHP
Informix
Ingres
InterBase
LDAP
Look and Feel
Miscellaneous
MySQL
Other
PHP Classes
Searching
Navigation
Statistics
Strings
User Manage