Hi everyone,
I have the following problem: i have 3 pages: Page1, Page2,
Page3; These pages register a product.
In Page1 i do a post to Page2. In Page2, i asynchrony upload some
images, to be used at Page2 itself, the images will be saved at the
DB, and used like: <img src="ShowImage. php?cod=1231">. Each Image has
a product associated.
If the user that will register his product, at Page2 already has
done 3 images upload, and close the web browser, what will happen? The
database will have the uploaded images, but these images will not have
a product associated, cause the user had not done the last post at
Page3!
I´ve beeing doing a research, and i realized that i could use a
transaction. But, this transaction needs a persisten connection.
I use postgresql, Did anyone knows how to solve my problem? How Can
i use a persistent connection with php? Did the persistent connection
will solve my problem?
Thanks very much
I have the following problem: i have 3 pages: Page1, Page2,
Page3; These pages register a product.
In Page1 i do a post to Page2. In Page2, i asynchrony upload some
images, to be used at Page2 itself, the images will be saved at the
DB, and used like: <img src="ShowImage. php?cod=1231">. Each Image has
a product associated.
If the user that will register his product, at Page2 already has
done 3 images upload, and close the web browser, what will happen? The
database will have the uploaded images, but these images will not have
a product associated, cause the user had not done the last post at
Page3!
I´ve beeing doing a research, and i realized that i could use a
transaction. But, this transaction needs a persisten connection.
I use postgresql, Did anyone knows how to solve my problem? How Can
i use a persistent connection with php? Did the persistent connection
will solve my problem?
Thanks very much
Comment