[PHP] Very Wierd Problem

2003-06-14 Thread James E Hicks III
I am experiencing some weird problems with PHP. When I execute the following query from within a PHP script, the description is set to 'EBCO' and not 'EBCO\030774-006\BUBBLER VALVE'. When I execute this query from the mysql monitor the value is inserted correctly. $query = update the_table

Re: [PHP] Very Wierd Problem

2003-06-14 Thread John W. Holmes
James E Hicks III wrote: I am experiencing some weird problems with PHP. When I execute the following query from within a PHP script, the description is set to 'EBCO' and not 'EBCO\030774-006\BUBBLER VALVE'. When I execute this query from the mysql monitor the value is inserted correctly. $query =

RE: [PHP] Very Wierd Problem

2003-06-14 Thread James E Hicks III
\0 is a NULL character, IIRC. Either use single quotes: echo ('EBCO\030774-006\BUBBLER VALVE'); or use two slashes, like you did above: echo (EBCO\\030774-006\\BUBBLER VALVE); ---John Holmes... Problem is that this description is coming from a DB, that's why I was trying to use addslashes,

Re: [PHP] Very Wierd Problem

2003-06-14 Thread John W. Holmes
James E Hicks III wrote: \0 is a NULL character, IIRC. Either use single quotes: echo ('EBCO\030774-006\BUBBLER VALVE'); or use two slashes, like you did above: echo (EBCO\\030774-006\\BUBBLER VALVE); ---John Holmes... Problem is that this description is coming from a DB, that's why I was