View previous topic :: View next topic |
Author |
Message |
acheta
Joined: 17 Nov 2004 Posts: 4
|
Posted: Wed Nov 17, 2004 4:32 am Post subject: help |
|
|
Dumb questions maybe, but I don't get it.
I'm using the original Nathan refererLib script and can't get it to work.
I created the tables in my MySQL db manually as I am using pmachine.
I included the script by using <?php include ("refererLib.php"); ?> on top of the page.
To log the referers I included <? php logReferer(); ?> also on top of the page.
At the place where I want the referers to appear I wrote
<?php
$list = refererList(5);
foreach ($list as $link){
print "$link<BR>";
}
?>
I doesn't work. As I am pretty new to php I assume I did something wrong with my php. Could someone tell what I did wrong and how to correct it?
Thanks a lot in advance. |
|
Back to top |
|
 |
Cyberian75
Joined: 26 Sep 2002 Posts: 1267 Location: Oregon
|
Posted: Wed Nov 17, 2004 6:41 am Post subject: |
|
|
[Deleted] _________________ Michael P.

Last edited by Cyberian75 on Wed Nov 17, 2004 11:05 pm; edited 1 time in total |
|
Back to top |
|
 |
acheta
Joined: 17 Nov 2004 Posts: 4
|
Posted: Wed Nov 17, 2004 12:17 pm Post subject: |
|
|
no, that doesn't work.
but by now I've got the database working. the referers are being logged.
my only problem is that they dont show on the site.
I am still using
<?php
$list = refererList(5);
foreach ($list as $link){
print "$link<BR>";
}
?>
to display the referers. I have no idea what I'm doing wrong.
Any suggestions? |
|
Back to top |
|
 |
acheta
Joined: 17 Nov 2004 Posts: 4
|
Posted: Wed Nov 17, 2004 10:42 pm Post subject: |
|
|
ok, it's working.
at least it should. I seem to have a problem with the HTML/CSS on my site, which seems to interfere with the display of the referers. |
|
Back to top |
|
 |
acheta
Joined: 17 Nov 2004 Posts: 4
|
Posted: Thu Nov 18, 2004 5:43 am Post subject: |
|
|
ok, it's not the html/css thing.
I get the following error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/netsh167/html/refererLib.php on line 129
line 129 is:
while($result_row = mysql_fetch_array($sqr_recentReferer)){......
Any hints? |
|
Back to top |
|
 |
|