This is a discussion on Syntax Question within the PHP General forums, part of the PHP Programming Forums category; Hi, I am using an include with a very simple select statement: $sel = "SELECT type_name FROM customer_types WHERE type_id = &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I am using an include with a very simple select statement: $sel = "SELECT type_name FROM customer_types WHERE type_id = ". $row['customer_type'].\""; $customer_text = mysql_result(mysql_query($sel),0 ,0); That is my select statement. I am seeing this error: PHP Warning: Unexpected character in input: '\\' (ASCII=92) state=1 on line 3 Can someone tell me what is wrong? I need to escape that last double quote....... Thanks! |
|
|||
|
On May 10, 6:20*am, Mtek <m...@mtekusa.com> wrote:
> Hi, > > I am using an include with a very simple select statement: > > $sel = "SELECT type_name FROM customer_types WHERE type_id = ". > $row['customer_type'].\""; > $customer_text = *mysql_result(mysql_query($sel),0 ,0); > > That is my select statement. * I am seeing this error: > > *PHP Warning: *Unexpected character in input: *'\\' (ASCII=92) state=1 > on line 3 > > Can someone tell me what is wrong? *I need to escape that last double > quote....... > > Thanks! Try "SELECT type_name FROM customer_types WHERE type_id = "{$row[customer_type]}"; |
![]() |
| Thread Tools | |
| Display Modes | |
|
|