Unfortunately you did not provide the raw response content...
My guess is, ypur php script is returning this
from your php code
// Handle the case where no records are found $json = ["error" => "No records found"];
what is the value of nametxt?
is it any reasonable notesid value?
let me suggest you to use a working solution
and if you got that running, adjust it to your needs

and using virtual screens would make your life much easier, see tip 1 here General Tips and Tricks for App Inventor
Taifun