conn,$cfg_theme,$cfg_currency_symbol,$lang); global $cfg_membershipID; if(!$sec->isLoggedIn()) { header ("location: ../login.php"); exit(); } ?>
$value) { $$key = stripslashes($value); } } // Get expirey date // Construct the bitchin join query $query22 = "SELECT sales.id, sales_items.sale_id, sales_items.item_id, DATE_ADD(sales.date, INTERVAL 1 YEAR) as expires ". "FROM sales, sales_items ". "WHERE sales.id = sales_items.sale_id AND sales_items.item_id = '1' AND sales.customer_id = '$_GET[userID]'"; $result22 = mysql_query($query22) or die(mysql_error()); $today = date('Y-m-d'); // Print out the contents of each row into a table $row = mysql_fetch_array($result22); $expires = $row['expires']; // echo "EXPIRES $expires"; if ($row['item_id'] == "1" && $expires > $today){ $expiredate = $expires; } else { $expiredate = "Membership not paid (or expired $expires)"; } //mysql_free_result($result); ?>


Personal Information

Member Number:  
E-mail:  
Email Lists:
Phone Number:  
Mailing Address:  

Membership

 Member Type:  
Liability Waiver Signed?  
Membership Expires:  

Member Standing / Hours

= 1"; $vresult = mysql_query($vquery); if (!$result) { die("Query to show visits from table failed"); } $totalseconds=0; while($row = mysql_fetch_array($vresult)){ echo ""; echo ""; $totalseconds = $totalseconds + $timespent; } $hours=round($totalseconds/3600); echo ""; ?>
Member Flags:
Notes About This Member:  

Record of Visits:
$row[humanindate] $row[humanintime] - $row[humanout] $row[activity] "; $timespent = $row[unixout] - $row[unixin]; echo number_format(round($timespent / 3600*4)/4, 2) . " hrs"; echo " [Edit This Visit]

Rounded Total:

$hours hours