if ($con->connect_error)
{
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT * FROM Accounts WHERE acccount_num ='$accountNum'";
$result = $con->query($sql);
//$row = $result->fetch_row();
$row = mysqli_fetch_assoc($result);
print (json_encode($row));
$con->close();
This is my php code for connecting to the database where it is failing. I checked the field names in the actual database and I also checked all my code in the java project where my code is actually using the database. Really new to the whole concept of databases and PHP.