Jump to content

[SOLVED] Insert only some value in a db row


gr4devel

Recommended Posts

Hi community :)!

A simple question.

Does the insert method (in PS 1.5) support the inserting of only some value in a db row?

Actually I'm using it (i.e. the method) but it doesn't save the values specified nor it rise any error.

My final goal is to save only some value in a db row, specifically the ones that passed my validations.

 

Thanks in advance to everyone that would try to help me! ;)

Edited by gr4devel (see edit history)
Link to comment
Share on other sites

Mmm...there's nothing wrong with the insert method!!!

Guys the problem was (obviously) my code.

I was inserting only the values that passed each validation and so the others (previously validated and inserted) were overwritten.

Now I accumulate the validated fields and update the row with them on every new passed validation.

And it works!!!

 

Sorry for the entropy caused by my post! :(

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...