Hi all i have smal problem with sql i just need the result without duplicate SQL Table:
CREATE TABLE `charts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`timespan` varchar(200) DEFAULT NULL,
`visits` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=latin1;
SQl Insert:
INSERT INTO charts (timespan, visits)
VALUES "2016-02-14 10:00 PM", '1234')";
Result:
$result = mysql_query("SELECT * FROM charts");
while($row = mysql_fetch_array($result)) {
echo $row['timespan'] . "\t" . $row['visits']. "\n";
}