0

on database i have field desc with value \'test\' actually the input is 'test'

when i gather the field for display it on table, it show \'test'\ not 'test'

anyone can know how to change the value become 'test' ?

0

Use stripslashes to remove the slashes. For example:

echo stripslashes( $field );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.