Jump to content

UPDATE help... sql added extra "/"


cybertai

Recommended Posts

Hi,

 

My first time here. Having problem with one of my page. This is my code.

 

$insertSQL = "UPDATE nz_tbl_member set nzm_fullname= '".$_POST['indname']."' where nzm_id='".$id."'";

 

I've been getting errors.. so i tried output.. to my surprise this is the output:

 

UPDATE nz_tbl_member set nzm_fullname= \'Johhny\' where nzm_id=\'\'

 

Look at the extra \\\\\\\\\\\\

 

How do i get rid of it ?

 

THANKS!  :)

Link to comment
https://forums.phpfreaks.com/topic/118744-update-help-sql-added-extra/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.