isadmin()) die('Access Denied'); if(!$_GET['id']&&!$_POST) { $title = "New Client:"; $action = "create"; $create = true; } else if($_POST['a']) $rep = $_POST; else { $title = "Update Client:"; $action = "update"; if($_GET['id']) $client_id = $_GET['id']; $query = sprintf("SELECT * FROM ".CLIENT_TABLE." WHERE '$client_id' LIKE client_id"); $results= mysql_query($query); $rep = mysql_fetch_assoc($results); } ?>