boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Referers, or "pages that link to this page"
Goto page Previous  1, 2
 
Post new topic   Reply to topic    boardom Forum Index -> Hacks
View previous topic :: View next topic  
Author Message
acheta



Joined: 17 Nov 2004
Posts: 4

PostPosted: Wed Nov 17, 2004 4:32 am    Post subject: help Reply with quote

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
View user's profile Send private message Visit poster's website
Cyberian75



Joined: 26 Sep 2002
Posts: 1267
Location: Oregon

PostPosted: Wed Nov 17, 2004 6:41 am    Post subject: Reply with quote

[Deleted]
_________________
Michael P.



Last edited by Cyberian75 on Wed Nov 17, 2004 11:05 pm; edited 1 time in total
Back to top
View user's profile Send private message AIM Address
acheta



Joined: 17 Nov 2004
Posts: 4

PostPosted: Wed Nov 17, 2004 12:17 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
acheta



Joined: 17 Nov 2004
Posts: 4

PostPosted: Wed Nov 17, 2004 10:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
acheta



Joined: 17 Nov 2004
Posts: 4

PostPosted: Thu Nov 18, 2004 5:43 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Hacks All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group