in the header.php
<?PHP
ini_set("session.use_cookies", 0);
ini_set("session.use_trans_sid", 1);
session_start();
error_reporting(E_ALL);
?>
in the main display area
$_SESSION['achievements'] = array();
foreach ($char_xml->category->achievement[0]->attributes() as $a => $b){
if ($a == "id") {$id = $b;}
elseif ($a == "dateCompleted") {$date = $b;}
}
$_SESSION['achievements']["$id"] = $date;
foreach ($char_xml->category->achievement[1]->attributes() as $a => $b){
if ($a == "id") {$id = $b;}
elseif ($a == "dateCompleted") {$date = $b;}
}
$_SESSION['achievements']["$id"] = $date;
foreach ($char_xml->category->achievement[2]->attributes() as $a => $b){
if ($a == "id") {$id = $b;}
elseif ($a == "dateCompleted") {$date = $b;}
}
$_SESSION['achievements']["$id"] = $date;
foreach ($char_xml->category->achievement[3]->attributes() as $a => $b){
if ($a == "id") {$id = $b;}
elseif ($a == "dateCompleted") {$date = $b;}
}
$_SESSION['achievements']["$id"] = $date;
foreach($SESSION['achievements'] as $key => $value){echo 'The value of $SESSION['."'".$key."'".'] is '."'".$value."'".' <br />';} // debug code
}
the array looks like this
key data
1178 october 31 2008
557 july 4 2007
so on and so forth
then we compare it to the DB with
if ($_SESSION['achievements'][$row[0]] != NULL){echo "style=\"display:none\"";}
Herb
thanks again
not sure if this make a difference but the page only shows 10 records at a time so you have to navigate to the different pages to get the rest of the data 8 pages total as of right now
thanks again