After isolating the problem, i found that on the php side, $_GET['$fname'] is not grabbing the information from the json request action. I tested the php by placing the username directly into the variable, and that does work, so i do know that it is grabbing the database. This is how the json looks
"
http://domain.com/log.php?fname='"&myUser&"'&fpass='"&myPass&"'"
"
This is how the php looks
"
<?php
header('Access-Control-Allow-Origin: *');
error_reporting(0);
require 'connection.php';
$username = $_GET[$fname];
$password = $_GET[$fpass];
$safeuser = $db->real_escape_string($username);
if($result = $db->query("SELECT * FROM `members` WHERE username='".$username."'")){
if ($count = $result->num_rows){
while($row = $result->fetch_assoc()){
echo $row['id'];
}
}
}
?>
"