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 a join query which already ADDS ONE YEAR to the date of purchase to result in expirey date $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 = "Not Paid (or expired $expires)
(USE SALES to sell a membership)"; } //mysql_free_result($result); ?>

Add/Edit A Member

Personal Information

First Name:  *      Last Name:  *
E-mail:  *
Mailing Lists:   $cfg_mailmanListName1"; ?>     $cfg_mailmanListName2"; ?>     $cfg_mailmanListName3"; ?>
Phone Number:   *
Mailing Address:  
*

Membership

Student ID:  
OR: Drivers License #:  (non-student)
OR: Cash Deposit:

 (no drivers license)

 Member Type:   *
Liability Waiver Signed  >
 
Member Flags:   First Warning"; ?>
  Second Warning"; ?>
  Banned from the shop"; ?>
Notes About This Member:   *
All information is held in confidence by TheBikeTree.
Information will not be shared with any other organizations without your permission.