Re: wouldn't insert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Elijah.....

> There are no errors whatsoever, must be something wrong with the logic
> somewhere...

What I do when I can't find errors is break down the code into
smaller steps and add error checking.

Make the connection and check the return value.

Put together the sql statement and print it.

Query the database and check the return value.

and so forth.....

Check php.net to see some examples of error checking.

On another note, if I'm only working with only one db I just connect once
near the start of the script and then use that connection for the
subsequent calls.

brew

 ==========================================================================
                  Strange Brew   (brew@xxxxxxxxxxx)
     Check out my Musician's Online Database Exchange (The MODE Pages)
                        http://www.TheMode.com
 ==========================================================================



[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux