Jump to content

[SOLVED] Check response from API ??


salman_ahad@yahoo.com

Recommended Posts

From API class, if I get success...need to insert in table

 

...//API class
if($resultArray['http_code'] == "200")
{
$response = "Success";
} else {
$response = "Failed";
}
return $response;

 

...//My Class
if ($response=="Success")
{
$query = ("INSERT INTO *table*.......);
}

 

What am I missing ??

Link to comment
https://forums.phpfreaks.com/topic/180060-solved-check-response-from-api/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.