hey guys
i want to write a tracking system and now i can save in my Mysql database . but saving information about each ip that visits is a huge work for mysql
so i think if i could save the information in a file , then there is no discussion about database and its problems .
but to begin this : i realy dont know how to save in a file in a way that i can read it with no problem and show the details
this is what is used to insert into my database
sql_query("insert into tracking (date_time, ip_address, hostname,referer, page , page_title)
values
('".sql_quote($dt)."', '".sql_quote($ipaddr)."', '".sql_quote($hostnm)."','$referer', '".sql_quote($pg)."', '".sql_quote($pagetitle)."')", $dbi);
i need to show information about all ips in rows , after saving in a file
what should i do to save and show in row order ( table )
php/mysql