With these it helps I replicated your problem and I observe bool(false) when the ajax url is wrong (not found). Make sure your "someurl" is valid. If the JSON is invalid, your script would still print it correctly. If the url returns nothing you's still observe 'string(0) ""'
will be helpful for those in need To answer your question: mysql_result returns FALSE on error. You are passing the array from mysql_fetch_assoc instead of the mysql resource as required by mysql_result's function signature:
wish of those help Is showQuizDialog(rightA) supposed to magically change the value of rightA? (I'm assuming you're not passing it by reference). Did you mean to write rightA = showQuizDialog(rightA) or rightA = quiz -> askQuestion(rightA)?
BOOL method is returning true when used by NSLog when it should be returning false