0){ $myrow = mysql_fetch_array($result); $usertype=2; $clientid=$myrow["id"]; } if($affected_rows==0){ $clientid="bad"; } ?> "bad"){ //If this is a client then show them the Charter Request Form $SQL = "select * from clients where id=$clientid"; print $sql; $result = mysql_db_query($db,"$SQL",$connection); $myrow = mysql_fetch_array($result);} } ?>