b2k Posted July 31, 2007 Share Posted July 31, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/62726-click-counter/ Share on other sites More sharing options...
Fadion Posted July 31, 2007 Share Posted July 31, 2007 U can do it simple with mysql so why chosing another method. Maybe a flat file (.txt) can make the work and im sure u can find a lot of good tutorials in the net. Still i'd prefer the database method. Quote Link to comment https://forums.phpfreaks.com/topic/62726-click-counter/#findComment-312383 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.