instalation instructions
instalation instructions

file:b/install.readme (new)
--- /dev/null
+++ b/install.readme
@@ -1,1 +1,3 @@
-
+1. create a mysql database

+2. import in the database the file ./install/db.sql

+3. edit the mysql user credentials in ./include/config/dbconnection.php

file:b/install/db.sql (new)
--- /dev/null
+++ b/install/db.sql
@@ -1,1 +1,16 @@
-
+CREATE TABLE IF NOT EXISTS `cards` (

+  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,

+  `card1` varchar(15) NOT NULL,

+  `card2` varchar(15) NOT NULL,

+  `card3` varchar(15) NOT NULL,

+  `card4` varchar(15) NOT NULL,

+  `card5` varchar(15) NOT NULL,

+  `combo` set('ace hearts','ace diamonds','ace clubs','ace spades','2 hearts','2 diamonds','2 clubs','2 spades','3 hearts','3 diamonds','3 clubs','3 spades','4 hearts','4 diamonds','4 clubs','4 spades','5 hearts','5 diamonds','5 clubs','5 spades','6 hearts','6 diamonds','6 clubs','6 spades','7 hearts','7 diamonds','7 clubs','7 spades','8 hearts','8 diamonds','8 clubs','8 spades','9 hearts','9 diamonds','9 clubs','9 spades','10 hearts','10 diamonds','10 clubs','10 spades','jack hearts','jack diamonds','jack clubs','jack spades','queen hearts','queen diamonds','queen clubs','queen spades','king hearts','king diamonds','king clubs','king spades') NOT NULL,

+  `combohash` varchar(32) NOT NULL,

+  `hand` tinyint(2) unsigned NOT NULL,

+  PRIMARY KEY (`id`),

+  UNIQUE KEY `combohash` (`combohash`),

+  KEY `hand` (`hand`),

+  KEY `id` (`id`),

+  KEY `combo` (`combo`)

+) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=0 ;

file:b/usage.readme (new)
--- /dev/null
+++ b/usage.readme
@@ -1,1 +1,1 @@
-
+The generator runs best from cli : php generator.php

comments