Login   Register  
PHP Classes
elePHPant
Icontem

File: db_config.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Olaf Lederer  >  MyPagina pagination class  >  db_config.php  >  Download  
File: db_config.php
Role: Configuration script
Content type: text/plain
Description: database configuration and constand vars
Class: MyPagina pagination class
Show links to browse pages of MySQL query results
Author: By
Last change:
Date: 2005-06-04 07:47
Size: 794 bytes
 

Contents

Class file image Download
<?php 
// modify these constants to fit your environment
if (!defined("DB_SERVER")) define("DB_SERVER""localhost");
if (!
defined("DB_NAME")) define("DB_NAME""your_database");
if (!
defined("DB_USER")) define ("DB_USER""user_name");
if (!
defined("DB_PASSWORD")) define ("DB_PASSWORD""password_here");

// some external constants to controle the output
define("QS_VAR""page"); // the variable name inside the query string (don't use this name inside other links)
define("NUM_ROWS"5); // the number of records on each page
define("STR_FWD""&gt;&gt;"); // the string is used for a link (step forward)
define("STR_BWD""&lt;&lt;"); // the string is used for a link (step backward)
define("NUM_LINKS"5); // the number of links inside the navigation (the default value)
?>