salman_ahad@yahoo.com 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 ?? Quote Link to comment Share on other sites More sharing options...
salman_ahad@yahoo.com Posted November 3, 2009 Author Share Posted November 3, 2009 Any help ?? Quote Link to comment 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?.....' Quote Link to comment 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... :-\ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.