You are here: Re: Useronline code does not work ?? any ideas « PHP Language « IT news, forums, messages
Re: Useronline code does not work ?? any ideas

Posted by shorty on 08/22/05 16:40

Got it working and thanks to all.

Nothing to do with priviliges or any Mysql problems.

The code now reads

$ip = $_SERVER['REMOTE_ADDR'];
$file = $_SERVER['PHP_SELF'];
$query = mysql_db_query($dbname, "INSERT INTO useronline
VALUES('$timestamp','$ip','$file')") or die("<b>MySQL Error:</b>
".mysql_error());


For some reason, be it the way i write it, the code will not run if
$_SERVER['REMOTE_ADDR'] or $_SERVER['PHP_SELF'] is entered directly
into the insert command.

Once again thanks.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация