OK the location for the csv file is National lottery site . This file contains 10 fields which are as follows date of the draw, ball numbers 1 to 6, bonus ball number, ball set and name of machine used.
First of all you have to create a database called lotto, in this database create a table call this lotto also. The MySQL dump below shows the structure of this database more clearly.
# phpMyAdmin SQL Dump
# version 2.5.6-rc1
# http://www.phpmyadmin.net
#
# Host: localhost
# Generation Time: Feb 09, 2004 at 04:50 PM
# Server version: 4.0.15
# PHP Version: 4.2.3
#
# Database : `lotto`
#
# --------------------------------------------------------
#
# Table structure for table `lotto`
#
CREATE TABLE `lotto` (
`date` date NOT NULL default '0000-00-00',
`ball1` tinyint(4) NOT NULL default '0',
`ball2` tinyint(4) NOT NULL default '0',
`ball3` tinyint(4) NOT NULL default '0',
`ball4` tinyint(4) NOT NULL default '0',
`ball5` tinyint(4) NOT NULL default '0',
`ball6` tinyint(4) NOT NULL default '0',
`bonus` tinyint(4) NOT NULL default '0',
`ballset` tinyint(4) NOT NULL default '0',
`machine` varchar(20) NOT NULL default '',
KEY `date` (`date`)
) TYPE=MyISAM;
|