Jump to content

Click Counter


b2k

Recommended Posts

Hi, i want to make a link counter, i mean, when somebody click on a link in my web, this click is archives.

 

I have this...

$url = $_GET['url'];
if($url != ""){
  mysql_connect(host, user, passwd);
  mysql_select_db(mibd);

  $consulta = mysql_query("SELECT count(*) as existe FROM mitabla WHERE url = '$url' ");
  $existe = mysql_result($consulta, 0, 'existe');

  if($existe){

  }
  else {

  }


header("Location: $url");
}

 

But this one use mysql, i want to use but without mysql

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/62726-click-counter/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.