im looking this php script, urgent

Discussion in 'PHP' started by mixtaka, Mar 8, 2011.

  1. #1
    Hello

    im looking this php script ("go.php?43387" of this url http://ineedadoctordre.info/3/go.php?43387 , every time when you open this url it redirect to another link, each and every-time it redirect to different url.

    Thanks
     
    mixtaka, Mar 8, 2011 IP
  2. ferostive

    ferostive Active Member

    Messages:
    162
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    you need just a database .
    ex: id , url
    simple php script .
    $con = mysql_connect("localhost","user","password");
    if (!$con)
      {
      die('Could not connect: ' . mysql_error());
      }
    
    mysql_select_db("yourDB", $con);
    $result = mysql_query("SELECT * FROM urltable ORDER BY rand() LIMIT 1");
    $row = mysql_fetch_array($result);
    header( 'Location:'.$row['url'] );
    PHP:
     
    ferostive, Mar 9, 2011 IP