[email protected] Posted November 3, 2009 Share Posted November 3, 2009 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 More sharing options...
[email protected] Posted November 3, 2009 Author Share Posted November 3, 2009 Any help ?? Link to comment https://forums.phpfreaks.com/topic/180060-solved-check-response-from-api/#findComment-949946 Share on other sites More sharing options...
trq Posted November 3, 2009 Share Posted November 3, 2009 You might want t take a look at the 'How to ask...' link in my signature. Its not the first post of your I've read and gone 'what the fuck?.....' Link to comment https://forums.phpfreaks.com/topic/180060-solved-check-response-from-api/#findComment-950059 Share on other sites More sharing options...
kristofferlc Posted November 3, 2009 Share Posted November 3, 2009 You forgot a " in one part off your code... ...//My Class if ($response=="Success") { $query = ("INSERT INTO *table*......."); } Anyway i dont ee what the problem should be... :-\ Link to comment https://forums.phpfreaks.com/topic/180060-solved-check-response-from-api/#findComment-950077 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.