Record views on outside links

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jwrigh26
Forum Newbie
Posts: 7
Joined: Wed Jul 23, 2008 10:35 pm

Record views on outside links

Post by jwrigh26 »

Does anybody know if it's even possible to record the number of views a link to an outside page has by using just php and mysql?

I'm trying to make a page that displays tutorials and show the number of times a tutorial has been viewed. Each tutorial is a link to a different web address.

If anybody knows I would appreciate it.

Thanks,
Justin
jwrigh26
Forum Newbie
Posts: 7
Joined: Wed Jul 23, 2008 10:35 pm

Re: Record views on outside links

Post by jwrigh26 »

Never mind I just figured it out.

If anybody cares or most probably know.

Instead of directly linking I mad a page that basically updated in mysql and then did a
'<meta http-equiv="Refresh" content="1;'; and referred the page to the desired link.

It may not be the best way but I got my views to record so I'm a happy camper.
:D
Post Reply