Register  |  Login




Advertisement

Start Your Own Q&A Site

Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.

Question

Status: Closed Points: 75 Time: 11:44 - Feb 26, 2010  

hansabri

How to open multiple records/windows at the same time in a PHP/MySQL web application

Hello,
Thank you in advance for trying to help me.

I'm trying to develop a basic web application for my work place with php & mysql.

I would like to know how can I open multiple projects from the database at the same time.

I am not an expert. I have an idea that I can use Session control. I don't know if it possible to have many sessions open for each project at the same time.

Or there could be something basic which I don't know.

Any help towards this would be much appreciated.

Regards,
Sab

Answer Discussion
Tutorials

 

NeoCambell

Date:: Mar 04, 2010

Time:: 17:47

You can make multiple connections to mysql simultaneously as DBMS will manage that internally for you. There is no requirement to use php sessions for this.

hansabri

Date:: Mar 07, 2010

Time:: 08:51

Hi NeoCambell,
Thank you for the response.

But I wanted to know how to open many records at the same time in one browser(ie.same user).

For example, the user wants to open project 1001 and project 1008 at the same time in different tabs/windows and should be able to edit/access them.

Normally in web applications when you open another record the previous window changes to the current record.

I'm not sure if I'm asking the question correctly. Please forgive me for the long winded approach.

Can you please let me me how to implement this....

Many thanks.
Sab

NeoCambell

Date:: Mar 08, 2010

Time:: 03:20

Normally, when you open a record, you open it with a unique ID. In your case, in one window we have ID: 1001 where the other window has ID: 1008. When you save you pass the records against the ID to database. So from one page we pass 1001, xxx, eee, ttt, aaa and from the other window we pass 1008, yyy, fff, aaa, jjj. This is fully okay.
The only problem comes when you open the record with same ID in two windows, where the 2nd update overwrite the first update. (However you don't need to handle this as the user is aware that he has opened the same record in different windows.

Since the same user can open record in multiple windows, you may implement sessions using php, so you can detect that the same user is submitting records.

See this article to get a simple idea on handling sessions. http://www.expertcore.org/viewtopic.php?...

hansabri

Date:: Mar 08, 2010

Time:: 06:57

Hi NeoCambell,

Thank you very much for your reply.

I hope this is the way forward. I can see some light end of the tunnel!

I hope I can assign the unique project numbers to Session ID. I will start implementing this in few weeks.

You've really been helpful. I appreciate it.



Many regards,
Sab

drfly9

Date:: Dec 28, 2010

Time:: 04:25

Many people encounter the following computer problems: take a long time to start up, load websites or run programs. Recently I find the functional software which can fix all these problems just with one click: tuneup360, maybe you guys could have a try.<img src="http://post2.zhubajie.com/p/1292988585/1...

Question Answered

This question has been closed, and points have been rewarded to the following experts:


NeoCambell: 75

You're welcome however to comment or give additional information or if you wish, you have the ability to write a Tutorial in the Tutorial Area.

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

No tutorials have been submitted yet. Want to be the first?

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Ask a Question

Have a new question? Ask!

You have 100 characters to use



Top Experts

View More

Rank

Expert

Points

1.

nidhi

10279

2.

oracleofDelphi

6493

3.

rcastagna

5596

4.

LAGM

4848

5.

PeterNZ

3487

6.

gonzalo

2840

7.

Mason

2770

8.

jgivoni

2303

9.

xarcus

1820

10.

Anpanman

917

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es