![]() |
| ||
| visitor Details hi I had a web site made in php. I need to collect visitor data ( ip address, visiting time) and store in it a database. I wrote the code like this date_default_timezone_set('Asia/Calcutta');and this is works perfectly for me.. Let me know am i need to do anything more in it ???? |
| ||
| Re: visitor Details Dont format the date until you pull the data out of the database its much quicker to update the table or perform compares when later reporting if the data is timestamp and <?php /* add a visitcount column to the database $query = mysql_query(sprintf("select id from visitordetails where ip='%s';", $_SERVER["REMOTE_ADDR"]));and/or update the table with a last_visit column and do the same exist check to post the current timestamp to last_visit |
| ||
| Re: visitor Details or install the geoip library and map the locations from the ip and crate a googlemap mashup of the ip locations |
| ||
| Re: visitor Details Quote:
query = mysql_query(sprintf("select id from visitordetails where ip='%s';", $_SERVER["REMOTE_ADDR"])); |
| ||
| Re: visitor Details Thank you for the kind support.. |
| All times are GMT -4. The time now is 6:31 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC