Problems updating DB

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
welsh_sponger
Forum Newbie
Posts: 14
Joined: Fri Feb 03, 2006 7:46 am

Problems updating DB

Post by welsh_sponger »

I have written a script to update values in a Database. This works correctly. However when I put this code into another script it doesnt work at all.

The script that I put it into, is a basic script that gets a file contents and does some pattern matching.

Any ideas why my update script doesnt work when i move it to this script?

Thanks
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

You gotta post more info:

1. What environment are the two scripts in (server type, PHP version, DB version, folder access)?
2. What is not working in the second that is working in the first.
3. What errors, if any, is PHP generating?

Also, you might want to post some code for your problem. It always helps when we can what is happening in the application itself.
welsh_sponger
Forum Newbie
Posts: 14
Joined: Fri Feb 03, 2006 7:46 am

Post by welsh_sponger »

I solved the problem. Thanks
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Cool. Can you edit the title of your original post by adding '[SOLVED] - ' to the beginning of it. Also, can you post what you did to solve your problem so others might be able to benefit from your findings?
Post Reply