Reply to Re: INSERT Statement problem

Your name:

Reply:


Posted by Rik on 03/13/07 22:18

G-Rod <futbolguy@gmail.com> wrote:

> Thanks for your reply to help me with this. Sorry for the incomplete
> info before, but hopefully this will fill some gaps:
>
> I have uploaded a text file with financial information. We receive it
> this way, so I upload it this way. It uploads successfully. $budget
> is an array with the latest transactions since the last time the
> database was updated. Each transaction has 23 values. These items are
> all correct. I used the error codes that you mentioned and I received
> no errors.
>
> $this->query has the following function code.
>
> function query($query){
> $result =3D mysql_query($query, 0)
> or die ("Couldn't execute query");
> return $result;
> }
>
> The only error message I'm receiving is "Couldn't execute query"....
> working to get something similar to $this->error() working.

That would indeed tell you nothing.

mysql_query(...) or die (mysql_error()) would have told a lot more...

-- =

Rik Wasmus
Posted on Usenet, not any forum you might see this in.
Ask Smart Questions: http://tinyurl.com/anel

[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

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