You are here: Re: mysql_query strangeness (misreported syntax error?) « All PHP « IT news, forums, messages
Re: mysql_query strangeness (misreported syntax error?)

Posted by Mark Nenadov on 06/09/07 20:17

On Sat, 09 Jun 2007 18:54:59 +0200, J.O. Aho wrote:
> Even if you have done the query yourself and you are 100% sure you done it
> right, it's always good to print it out

Which, if you read my reply, is exactly what I did. I wrote the query
myself. And I pasted the exact echo output of the query that is being
passed to mysql_query() to the mysql console client and it worked.

> PHP itself will not parse or execute the query, but just deliver it to the
> mysql server.

That makes sense to me, but I have in front of me here a clear cut case of
a query that works on the mysql console client but not when passed to
mysql_query(), which leads to why I've posted here.

Something is fishy. I have a query that definitely works in mysql, but
PHP's mysql_query is choking on it somehow.


Thanks,

--

Mark Nenadov
http://www.marknenadov.com/

 

Navigation:

[Reply to this 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

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