Reply to Re: what's wrong?

Your name:

Reply:


Posted by peter on 03/16/07 11:47

> That would give a PHP syntax error. He's getting a MySQL error.

If for example in the php code he has the following:-

$sql = "insert into canton ( big5, thekey, changjei, canton, touched )
values ('\','BAY ','MGPP ','PEI ',0)"

then no it will not create a php parse error it will have an sql error like
he has as \' is an escaped single quotation mark thus the closing quotation
mark is the 1 directly before BAY

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация