For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > March 2007 > SQL unexpected T_CONSTANT_ENCAPSED_STRING Error









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author SQL unexpected T_CONSTANT_ENCAPSED_STRING Error
Lasitha Alawatta

2007-03-22, 6:57 pm

Hi All,

I have a sql script unable to execute. Because I need to insert double-coats ( " ) also to one field(SPParams field).

Ones I execuit this using mysql_query($sql), it gives "Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING " error message.


$strSql = "";
$strSql = $strSql."UPDATE Masters.tblBranches SET FHeadMail= 'aind@abc.net;', ";
$strSql = $strSql."BranchDBConnection='Server=SLBC05; Database=BackOffice; UID=b0;pwd=sSLap.+05);', ";
$strSql = $strSql."SPParams='<pl><ipl><p id="spCustomersAddSLBC" t="VarChar">CustomerName</p><p id="spCustomersAddSLBC" t="TinyInt">CustomerType</p>' ";
$strSql = $strSql."WHERE BranchCode=101";

How can I be able to solve this issue..?


Thank you very much,
Lasitha


---------------------------------
What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship.
Dirty_kuffar

2007-03-26, 9:15 pm

Nicole Kidman Blowjob!
http://Nicole-Kidman-Blowjob.org/Wi...hp?movie=148803
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com