Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbhost = 'localhost';
- $dbuser = 'root';
- $dbpass = 'root';
- $dbname = 'RagePage';
- $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
- mysql_select_db($dbname);
- echoRages(1);
- function echoRages ($page){
- $startrecord = ($page - 1) * 5;
- $endrecord = $startrecord + 5;
- $query = "SELECT * FROM `Rages` LIMIT 0 , 5";
- $results = mysql_query($query) or die mysql_error();
- }
- ?>
Add Comment
Please, Sign In to add comment