delux247 Posted February 10, 2009 Share Posted February 10, 2009 basically I have multiple forms for multiple clients. I need to be able to add update and delete, the ad and delete are working fine but the update is not. i have narrowed the reason down the my $_POST array. The code below shows how I am doing my update. if(isset($_POST['soq_references'])) { $SCRUD = new CRUD('soq_references'); $SCRUD->setFieldsArray(array('type')); //set fields from database that need to be updated new dbug($_POST['soq_references']); foreach($_POST['soq_references'] as $id=>$reference) { extract($reference); $SCRUD->newWhere("`id` = '$id'"); $SCRUD->update(array($type)); } } when I do a dbug on $_POST['soq_references'] this is what I see, as you can see all of the values have \' before and \' after. I need help getting rid of these slashes and quotes. Thank you in advance for any help regarding this matter. It is greatly appreciated. If you need more info just ask. Quote Link to comment https://forums.phpfreaks.com/topic/144635-i-need-some-_post-array-help/ Share on other sites More sharing options...
premiso Posted February 10, 2009 Share Posted February 10, 2009 Magic Quotes I would suggest turning them off, as they are depreciated in PHP 6 and disabled in PHP 5 by default. Quote Link to comment https://forums.phpfreaks.com/topic/144635-i-need-some-_post-array-help/#findComment-758965 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.