NomadicJosh Posted July 25, 2013 Share Posted July 25, 2013 I have a form which has multi-value select fields (Bootstrap) in which I can use to submit an array of data to the database. Now, the issue is I am having trouble retrieving that array with json_decode(). The issue is my array format for returning values: <?php echo json_decode( $this->prog[0]['schoolKey']) ); ?> When echoing out the above, I get the follow error message: "stripslashes() expects parameter 1 to be string, array given in ..." I know there is a easy solution, but I've been working 12 hours long and I can barely see straight. Any help with this is greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/280486-pdo-json-and-return-results/ Share on other sites More sharing options...
Muddy_Funster Posted July 25, 2013 Share Posted July 25, 2013 need more info Quote Link to comment https://forums.phpfreaks.com/topic/280486-pdo-json-and-return-results/#findComment-1442065 Share on other sites More sharing options...
Solution NomadicJosh Posted July 25, 2013 Author Solution Share Posted July 25, 2013 Nevermind, I've decided to go another route. Quote Link to comment https://forums.phpfreaks.com/topic/280486-pdo-json-and-return-results/#findComment-1442091 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.