Eóin Martin

He who is good for making excuses, is seldom good for anything else.

Rated 5

AJAX Links System by Slashman X

Back to tutorials

This tutorial will leave you with two files: link.js and dolinkout.php but before we start we need to set up a database, so whip open PHPMyAdmin, go to SQL and run this query:

Code


CREATE TABLE `links` (
  `id` int(5) NOT NULL auto_increment,
  `url` varchar(100) NOT NULL default '',
  `name` varchar(100) NOT NULL default '',
  `out` int(5) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;


This will create the base table for your links system. This tutorial will not show you how to insert links into your table but I might add that code at the end of the tutorial.

K, now onto the actual code.


2 Comments

  1. Slashman X

    21:15, April 30, 2008
    2

    Look at the right side of the site

    Links go directly to site, but if you hover it, it can still count the hits out

  2. Ali

    20:06, April 30, 2008
    1

    Got a demo mate?


Post A Comment Or Rating





  

  

captcha