PHP Classes

File: db_config.php

Recommend this page to a friend!
  Classes of Fahad Waheed Khan   MSSQL Pagination   db_config.php   Download  
File: db_config.php
Role: Configuration script
Content type: text/plain
Description: Config file
Class: MSSQL Pagination
Split MS SQL query results in multiple pages
Author: By
Last change:
Date: 15 years ago
Size: 643 bytes
 

Contents

Class file image Download
<?php
// modify these constants to fit your environment
if (!defined("DB_SERVER")) define("DB_SERVER", "localhost"); // localhost or you can use ur ip address also
if (!defined("DB_NAME")) define("DB_NAME", "Northwind"); // Database name
if (!defined("DB_USER")) define ("DB_USER", "sa"); // MSSQL Server username
if (!defined("DB_PASSWORD")) define ("DB_PASSWORD", "sa"); // MSSQL Server password

// 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", 20); // the number of records on each page
?>