Hi
can anyone help me with this ? Im trying to create a page that lets a user click a link and once that link has been clicked the page no longer displays that link for that user, i have all the databases set up to record clicks but i cant seem to get the PHP code to not display the clicked links, The code im using is as follows:
<?PHP
session_start();
// is the one accessing this page logged in or not?
if (!isset($_SESSION['logged_in'])
|| $_SESSION['logged_in'] !== true) {
// not logged in, move to login page
header('Location: login.php');
exit;
}
echo "Welcome "; echo $_SESSION['user_logged'];
// Connect to the database
include("sql.php");
$check_user_info = mysql_query("select * from tracking");
$check = mysql_query("select * from members where members.username ='toasty'");
$x = mysql_fetch_array($check);
$vised = explode(",",$x['adid']);
foreach($vised as $vised1)
{
$check_array = array_search($vised1, $vised);
if (!$check_array)
{
while ($row = mysql_fetch_row($check_user_info))
{
if ($vised1 != $row[1])
{
echo "<BR><a href='testframe1.php?id=$row[1]'>$row[3]</a>";
}
}
}
}
?>
any help would be great thanks.