|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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! |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On May 10, 6:20am, 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]}"; |
|
![]() |
| Outils de la discussion | |
|
|