Ok,
Have just started to write the simple bit of code and the database is annoying me. Say I have the following data coming in scenario:
Time LandingPage Referer ReferalPage Pviews Keywords
01:00 - 02:00
index.php MSN n\a 1 villa holiday
villa.php Google n\a 1 villa
villa.php internal index.php 1 n\a
index.php MSN n\a 1 caravans
index.php Google n\a 1 caravans
Then surely my database would need to be consolidated to:
Time LandingPage Referer ReferralPage Pviews Keywords
01:00 index.php MSN(2), Google(1) NULL 3 villa holiday(1), caravans(2)
01:00 villa.php Google(1), Internal(1) index.php(1) 2 caravans(2)
The only thing I'm worried about is I'll be forever pulling records from the database, breaking the columns apart (i.e. splitting Google(1),MSN(2) into an array, incrementing it and putting it back) and then putting them back and when (hopefully) I'll be getting thousands of visitors a day won't there be some confliction?
Any ideas as I have brain ache!
NM.
__________________
Holiday Villa In<br>
<font size=2>If it moves, kick it. If it doesn't move, kick it till it moves and hen kick it because it moved</font>
Last edited by Northern Monkey; 10-08-06 at 01:35 PM.
|