Jump to content

archie

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

archie's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. archie

    3d table

    Cheers akitchin. good advice
  2. archie

    3d table

    Is it possible in Mysql to create a 3 dimensional table; ie one which has x fields, y rows, and z height? This may sound a little odd, but what I want is a table with 51 fields and 50 rows for EACH of my users. Each cell in this table would contain an 11 digit intiger, which would be a reference to another table. At the moment, I am thinking I will have to create a table for each user, so I might end up with thousands of similar (in structure, not in content) tables. Is there a more efficient way of doing this, so I end up with one table which can accomodate all this data? Thanks, Archie
  3. Thanks Michael. Just found this in the php manual:
  4. Hi there. Would I be right in believing that one should close a MySQL connection after one has finished using it? eg if your page adds members to database, at the beginning of the page you would open the connection, then you would carry out the relevent quieries, then, finally, close the connection? If so, is the following possible? Store all the database info (username, password etc) in db.inc.php. Also put in this file the command to open the DB connection. In the file footer.inc.php (which would be added to all pages on the site) have a test to see if a DB connection is open, and if so, close it. Is this possible? Can one test for an open connection? (if so, how? ) Secondly, is this the most efficient way of doing this. The site I have in mind will be making very frequent use of the database; is it possible (and advisable) to keep the DB connection open? Sorry if this sounds complicated, or just non-sensical. Thanks in advance for your help
×
×
  • 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.