Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select after update...

Status
Not open for further replies.

tcardoso

Programmer
Jan 31, 2005
56
PT
Hi, I'm kind of noob in PHP...

I make several selects to a table, then I make one update and several selects again on the table...

The update seems to not commit, but if I put $sql->commit(); my execution of program dies there (like exit() or die())...

What should I do?

Thanks,
Telmo Cardoso
 
you have not really given us much information.

commits are only relevant if your database server does not autocommit.

perhaps you could help us further by :

telling us what database you are using
sharing the schema if it is relevant
sharing your code.
 
My mistake...I was not doing things properly...

I didn't post the code because its huge :) sorry and thanks anyway ;)
 
You can post just the relevant section, in this case, just the part where you build the the update statement and send it to the DB. Still you haven't told us what DB you are using, and how your tables are set up.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
@vacunita

i read from the OP's reply that he had now sorted it out.
 
I read that he was sorry for not posting the code, and that since it was so huge, he wasn't going to, but you may be right Jpadie, and hopefully he did resolve it.




----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
I did resolve it... sorry for not being explicit enough :(

Thanks vacunita
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top