Can't get the database to update

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Echo the query, echo the error, post the results in a new forum post in the Database category.
katd
Forum Commoner
Posts: 34
Joined: Thu Nov 10, 2005 9:12 am

Post by katd »

Thank you Everah and everyone else it is now working.

I think that this is what fixed it

Code: Select all

/******************************************
                         * THIS SHOULD BE DIE SEEING AS QUERY DOES
                         * NOT EXIST HERE
                         *****************************************/
                        die('<p><font color="red">Please click "back" and try again.</font></p>');
                }
                /**********************************************
                 * CLOSE THE ISSET CHECK HERE AND RUN THE QUERY
                 * OUTSIDE OF IT
                 *********************************************/
        }
as I left this in and the error checking in the fuction get_home_record but took out any other additions to the original code and it now works. BRILLIANT!!

Once again THANKS everyone. :D :D :D
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Sweet. Glad it is working now.
Post Reply