-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.php.example
More file actions
25 lines (19 loc) · 792 Bytes
/
config.php.example
File metadata and controls
25 lines (19 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
// website name/title
$title = "Castor's Guestbook";
// messages to display per page
$per_page = 10;
// Timezone to use (default to UTC)
// For example UTC, Asia/Kathmandu, America/New_York
$timezone = "UTC";
date_default_timezone_set($timezone);
// database server credientials
$hostname = 'localhost';
$hostuser = 'databaseuser';
$hostpass = 'databasepassword';
$dbname = 'databasename';
$tablename = 'tablename';
//connection between php and mysql (Do not change this!!!)
$dbconnect = new mysqli($hostname,$hostuser,$hostpass,$dbname);
// Create the required table in the database
// CREATE TABLE `<dbname>`.`<tablename>` (`id` INT AUTO_INCREMENT PRIMARY KEY, `name` VARCHAR(60) NOT NULL, `message` TEXT(600) NOT NULL, `date` DATETIME DEFAULT NOW() NOT NULL) AUTO_INCREMENT=1;