I have an Applescript that takes some user input and checks it against my database.
APPLESCRIPT
set domain to "mysite.com"
set keyURL to domain & "/product.php?email=" & email & "&productKey=" &
productKey & ""
set curlURL to (do shell script "curl " & keyURL)
open location keyURL
display dialog curlURL
PHP
$query = "SELECT * FROM table where email = '".$email."' AND `key` = '".$productKey."' ";
$result = $mysqli->query($query);
if (mysqli_num_rows($result) > 0) {
while($row = mysqli_fetch_assoc($result)) {
$email = $row["email"];
$key = $row["key"];
}
echo "true";
}else {
echo "false";
}
My server takes the data and checks it against my database and shows me a true or false. Whether or not it comes back with true or false my curURL is always false. The database check will return true on my site but my Applescript dialog will always be false. Does anyone know why this is the case?