1

Currently i am working on a face recognition project. The ionic function is uploading photo to php

fileTransfer.upload(this.myphoto, 'https://xyz.000webhostapp.com/uploadPhoto.php', options)

The php then executes python which recognises the face and send image data to mysql table. Is there any way I can get that data from mysql into Ionic app?

1 Answer 1

1

you can convert your php data into json and later fetch it in your ionic app

$result = mysql_query($query);
$rows = array();
while($r = mysql_fetch_assoc($result))
{
$rows[] = array('data' => $r);
}
echo json_encode($rows);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.