You are here: Re: [PHP] Mysql insert problems « PHP « IT news, forums, messages
Re: [PHP] Mysql insert problems

Posted by Philip Hallstrom on 10/19/69 11:14

On Fri, 15 Apr 2005, Frank Miller wrote:

> All,
>
> I have a form which submits technical requests. It worked fine on an
> old linux box using Mysql 3 series but recently we switched to windows
> 2003 server SP1 using Mysql 4.1.10. It was doing this before the
> service pack. I get the form values and then insert them into a table.
> Sometimes it works and sometimes it dies. I don't know where to look
> to fix this. Here is my code:

[snip]

Take a look at the following functions:

http://us4.php.net/manual/en/function.mysql-errno.php
http://us4.php.net/manual/en/function.mysql-error.php

and modify your die() statements (all of them) to include the output of
these functions which might shed some light on exactly what the problem is
when it's failing.

Good luck!

-philip

 

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

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