Jump to content

richiejones24

Members
  • Posts

    55
  • Joined

  • Last visited

Everything posted by richiejones24

  1. MySql Values after implode() '140 Church Street','St John\'s Wood','London','NW8 8EX' MySql Values before implode() '140 Church Street','St John\\'s Wood','London','NW8 8EX' The Code while ($f < count($AddressSplitBus)) { $AddressSplitBus[$f] = trim($AddressSplitBus[$f]); $AddressSplitBus[$f] = mysql_real_escape_string($AddressSplitBus[$f]); $f++; } //Create the Values to insert into DB $MysqlValuesBus = implode("','", $AddressSplitBus); $MysqlValuesBus = "'$MysqlValuesBus'"; $NumberValsBus = count($AddressSplitBus); Again Thanks for the help guys
  2. I run data through mysql_real_escape_string() before using implode() but implode() is removing 1 of the \ after mysql_real_escape_string() has put them in. If anyone you could let me know how i could stop this i would be great. Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.