thanks,
say
$comanyname="sunshine's web develop";
$sqladdcategory="INSERT INTO TABLE1 (companyname) VALUES ('$companyname')"
i have to use
$companyname=str_replace("'", "''", $companyname); to get rid off the sigle quote.
it is working fine.
but when i install it on another server.
the companyname value in the database become "sunshine''s web develop". and on that server
i DON'T have to use
$companyname=str_replace("'", "''", $companyname); to get rid off the sigle quote.
if i comment out the statement
//$companyname=str_replace("'", "''", $companyname);
then the value in the database will be fine as it is supposed to be, "sunshine's web develop".
these two servers are both php/interbase. so i guess it is set up of interbase differently. that one set up i have to handle the single quote issue, one set up i don't.
but i checked them out, didn't find the set up difference beween these two servers.
hui