You are here: Re: How to debug PHP's mysql_query() function? « PHP Programming Language « IT news, forums, messages
Re: How to debug PHP's mysql_query() function?

Posted by John Moore on 11/02/05 23:20

On Wed, 02 Nov 2005 21:04:54 GMT, in comp.lang.php Colin McKinnon
<colin.thisisnotmysurname@ntlworld.deletemeunlessURaBot.com> wrote:


>
>Well, you're running it on MS-Windows - thats not good for starters.
>

Thanks, but it behaves the same way in Slackware9.1, PHP 4.3.2,
mysql4.0.13, Apache1.3.24

>Try switching on the replication log in mysql and see if it changes size /
>timestamp when you run the query (you can also convert the log to a
>readable format - RTFM for more details).
>
>mysql_info(), like all the mysql_ fns should use the default...according to
>the manual (same for both _info & _query):
>
>: If by chance no connection is found or established,
>: an E_WARNING level warning is generated.
>
>...but of course you read that already. It seems most peculiar that the
>script is getting that far the way you've written it (the connection exists
>at line 1, becuase you're not getting a fatal error, yet nothing is
>(allegedly) getting updated, then there is no connection at line 5. I guess
>your installation might be fscked.
>
>C.
>

This gives me something to go on- I really appreciate it and will
check it out.


J Moore

 

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

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