PHP Classes

File: Multidim.php

Recommend this page to a friend!
  Classes of troy knapp   Multidim   Multidim.php  
File: Multidim.php
Role: Class source
Content type: text/plain
Description: source file
Class: Multidim
Manipulate multidimensional arrays in MySQL tables
Author: By
Last change: -added an optimize feature (captures sql statement and runs it all at once using mysqli_multi_query). During testing I found that when the MySQL server is under significant load, this can speed up insert times by several magnitudes. It's still not as fast as adding a variable to an array, but it can be faster. In times when there wasn't much database strain, I found this to be only slightly faster with only minor speed increases.
-added the ability to create decimal columns so that you can sort numbers properly without having to pad them
-added reset query feature
-added a save and restore feature (mdsave), allowing the user to save the current state of the object in an array, and open it back up elsewhere just as if nothing had happened. This feature does not reproduce the table, it just rather links the new object to the previous table.
Date: 13 years ago
Size: 33,339 bytes

You need to be a registered user and login to get this file.

Login Immediately with your account on: