Jump to content

Question about mysql_pconnect()


glenelkins

Recommended Posts

Hi

 

I need to use mysql temporary tables to store data from one form to the next until the system reaches the end and places everything into the real tables. Though when the script reloads to the next form ( screen ) the connection to the database will be lost and the temporary table will vanish?

 

Does mysql_pconnect()  solve this? I mean does it keep the same connection open even after the page refreshes?

Link to comment
https://forums.phpfreaks.com/topic/138983-question-about-mysql_pconnect/
Share on other sites

Just store your data in the actual table but use a "status" column to indicate it is "in-progress". Then simply switch the status to "final" once everything has been entered. You will find this results in the simplest code.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.