473,466 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to maintain array values over multiple accesses?

pradeepjain
563 Contributor
How do I maintain an array over number of different accesses? When ever the page gets refreshed the doctor index maintained by incrementing will be lost right?

Should i make it a global variable? How is it that I maintain it in memory?
May 7 '10 #1
5 1353
AngryJoe
8 New Member
Is the page being used by one person or many?
May 7 '10 #2
pradeepjain
563 Contributor
@AngryJoe
yeah.Its being accessed by 2 or more persons at same time...
May 8 '10 #3
AngryJoe
8 New Member
What does the website do?

You could read/write it from a text file or a database.
May 8 '10 #4
pradeepjain
563 Contributor
@AngryJoe
hey its typically a web based application which will be run in an hospital.
May 8 '10 #5
AngryJoe
8 New Member
I would have suggested using Cookies, but that's more of a per user thing.

If its an application run by a hospital, I would assume a database is involved. The right way to do this, in my opinion, is either store these values in a database or create a temp file on the webserver where you can store them and read from them as you want.
May 8 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Geoff Cox | last post by:
Hello, I have a series of pages each of which creates an array of values. How do I keep all the array values until the last page? Cheers Geoff
1
by: DavidB | last post by:
I am working with a database and I would like to be able to populate an array at run time and then use the values that were pushed into the array as criteria for a select query. It seems that this...
7
by: sanjeevcis | last post by:
Hi, Below code is regarding to insert an array values into mysql db using php. i dont know why the code is not inserting array values into database properly. If is there any thing wrong with the...
6
by: Jeff | last post by:
Dear experts! ..NET 2.0 I'm trying to make an array containg multiple datatypes. This array will consist of 3 items (string, string, integer): my first try was this, (of course it fails)...
1
by: Fareast Adam | last post by:
Anyone know how to sorting array values from least to greatest. Here the code; function mulsort($a) { sort($a); $c = count($a); for($i = 0; $i < $c; $i++) if...
0
by: Mike P | last post by:
I have a form that I using to add details to an array, but I need to continue to add these details to my array on multiple postbacks....how can I do this? Do I need to use a Session object instead?...
5
by: Geethu03 | last post by:
Hi i have a array values in hidden format <form name="form2" method="post" action="test.php"> <input type="hidden" name="date_val" value="<%= date %>"> <input type="hidden" name="name_val"...
1
by: hjaffer2001 | last post by:
I have three array values using nested loop. Now i want to export the array values to csv(excel). The code is for($j=0;$j<count($TimeEntriesList);$j++){ ...
0
by: jyoti Mahalik | last post by:
I have an button(add) which adds data to a datatable and binds it to a grid. I want to save the data into a array accross multiple postback without using session,viewstate etc... selectQuery =...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.