case "getbyemail":
$table = $_GET["mytable"];
$email = $_GET["email"];
$q = mysqli_query($con, "SELECT * FROM $table WHERE email = '$email'");
$rows = array();
while($r = mysqli_fetch_assoc($q))
{
$rows[] = $r;
}
echo json_encode($rows);
mysqli_free_result($q);
break;