Hello,
Situation: banner advertising system, statistics page.
I have 2 MySQL tables: impressions and hits:
CREATE TABLE `impressions` (
`id` bigint(20) NOT NULL default '0',
`datetime` datetime NOT NULL default '0000-00-00 00:00:00',
`ad` bigint(20) NOT NULL default '0',
PRIMARY KEY (`id`)
);
CREATE TABLE `hits` (
`id` bigint(20) NOT NULL default '0',
`datetime` datetime NOT NULL default '0000-00-00 00:00:00',
`ad` bigint(20) NOT NULL default '0',
PRIMARY KEY (`id`)
);
I want to put all information about ad's impressions and hits into the one HTML table.
<table>
<tr>
<td>Date</td>
<td>Impressions</td>
<td>Hits</td>
</tr>
{ loop start }
<td>$date</td>
<td>$impressions[$date]</td>
<td>$hits[$date]</td>
{ loop end }
</table>
Exactly: I have ad's id (ad - in MySQL table) and i need to get all data (when the ad was shown or/and clicked) from 2 MySQL tables.
Could anybody help?
Thank's.