> if (db_num_rows() > 0) { <= WHERE DOSE THIS VERABLE COME FROM?
This is just a count of the returned rows you have to make.
First, do something like this:
SELECT ip FROM table WHERE ip = visitor_ip;
If it returns 0 rows, it means you don't have the ip and need to store,
otherwise just update the view.
db_num_rows was a generic way to call the function you will use. Since
it's mysql, you can use mysql_num_rows.
So:
if (mysql_num_rows(mysql_query('the SELECT above')) {
//////
--
Julio Nobrega.
Um dia eu chego l�:
http://sourceforge.net/projects/toca
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php