fung9571
01-02-2007, 01:54 PM
Hi,
I am running xanga tracker site~
I have a "NaN" error in mysql.
After I moved my database from old server to new server.
There is a "NaN" add to mysql database automatically. And it happened to the old server too.
Example,
It should show as:
======
Page Viewed:http://www.xanga.com/username
Referrer:http://www.xanga.com/private/yourhome.aspx?user=another-username
================
However, it shows with the "NaN" error,
========
Page Viewed:NaNhttp://www.xanga.com/private/yourhome.aspx?user=another-username
Referrer:
================
The Referrer shows in "Page Viewed" accidently with "NaN" is added automatically.
And the "Page Viewed" is disappeared.
I need some advise to help me fix this "NaN error".
I research in google, and I dont think it help.
ref, this is our code,
<script type='text/javascript'>
var xanga = "username";
var from_url = escape(document['referrer']);
var links = document.getElementsByTagName('a');
for (var i=0; i<links.length; i++) {
if (links[i].href.match('http://www.xanga.com') && links[i].innerHTML.match('xanga') && (links[i+2].href.match
('/logout.aspx') || links[i+2].href.match('/signin.aspx'))) {
document.write('<img src="http://www.xxxxxxx.com/process.php?xanga='+xanga.toLowerCase()+'&visitor='+links
[i+1].innerHTML.toLowerCase()+'&url=' + document.location+'&ref='+from_url +'" width="0" height="0">');
}
}
</script>
Operating system CentOS 4.0
Kernel version 2.6.9-42.0.3.ELsmp
Machine Type i686
Apache version 1.3.37 (Unix)
PERL version 5.8.7
PHP version 4.4.4
MySQL version 4.1.21-standard
cPanel Build 10.9.0-RELEASE 95
Theme cPanel X v2.6.0
I am running xanga tracker site~
I have a "NaN" error in mysql.
After I moved my database from old server to new server.
There is a "NaN" add to mysql database automatically. And it happened to the old server too.
Example,
It should show as:
======
Page Viewed:http://www.xanga.com/username
Referrer:http://www.xanga.com/private/yourhome.aspx?user=another-username
================
However, it shows with the "NaN" error,
========
Page Viewed:NaNhttp://www.xanga.com/private/yourhome.aspx?user=another-username
Referrer:
================
The Referrer shows in "Page Viewed" accidently with "NaN" is added automatically.
And the "Page Viewed" is disappeared.
I need some advise to help me fix this "NaN error".
I research in google, and I dont think it help.
ref, this is our code,
<script type='text/javascript'>
var xanga = "username";
var from_url = escape(document['referrer']);
var links = document.getElementsByTagName('a');
for (var i=0; i<links.length; i++) {
if (links[i].href.match('http://www.xanga.com') && links[i].innerHTML.match('xanga') && (links[i+2].href.match
('/logout.aspx') || links[i+2].href.match('/signin.aspx'))) {
document.write('<img src="http://www.xxxxxxx.com/process.php?xanga='+xanga.toLowerCase()+'&visitor='+links
[i+1].innerHTML.toLowerCase()+'&url=' + document.location+'&ref='+from_url +'" width="0" height="0">');
}
}
</script>
Operating system CentOS 4.0
Kernel version 2.6.9-42.0.3.ELsmp
Machine Type i686
Apache version 1.3.37 (Unix)
PERL version 5.8.7
PHP version 4.4.4
MySQL version 4.1.21-standard
cPanel Build 10.9.0-RELEASE 95
Theme cPanel X v2.6.0