Sounds fairly complicated, but wat about storing the information in session
variables? and using multi dimensional arrays to store the information

eg

Array
(
    [call_1] => Array
        (
            [name] => john smith
            [number] => 555-555-555
            [time] => 2003-10-17 10:41:00
        )

    [call_2] => Array
        (
            [name] => bill johns
            [number] => 555-555-555
            [time] => 2003-10-16 07:41:00
        )

)


but it really depends on how you want to do it, it might be beneficial to re
query the database every time, especially if its going to be multi-user,
because what happens if 1 person logs a call, how will the other person
using the system know that a new call has been logged, re-querying it
shouldnt take too long, and would provide advantages when there is more than
one user, and you would have no synchronisation problems

Luke

----- Original Message ----- 
From: "Shiloh Madsen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 17, 2003 10:24 AM
Subject: [PHP-DB] Saving state


Sorry about the cross posting, as im not exactly sure what would be the best
method to handle this, but im trying to set up a web application with a
tabbed interface. Each tab will have a form to enter data, and the requisite
save and continue button. Heres where things get hard though. I want to be
able to allow users to click on a previous tab to refrence, change, update,
etc the information on those tabs. How do i save the state of these tabs so
that they can be reaccessed? Just so you have a little more information, im
trying to make a kinda simple call logging system with a customer tab which
would hold customer info and a calls tab which would store call info and
allow you to switch between call records. all of this data would be stored
in a database, but i dont want to actually have to send a new query to the
database just because the user clicked on a previous tab...if this would be
possible. Also, if anyone has an idea as to how i can implement this a bit
more intelligently, im open to suggestions, but the tabbed interface seemed
to be the most user friendly. And yes, the web interface is important, which
is why im not trying to do it in c++ or something like that.

Shiloh

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to