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. 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 Link to comment https://forums.phpfreaks.com/topic/280486-pdo-json-and-return-results/#findComment-1442065 Share on other sites More sharing options...
NomadicJosh Posted July 25, 2013 Author Share Posted July 25, 2013 Nevermind, I've decided to go another route. 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
Archived
This topic is now archived and is closed to further replies.