=) thanks for stopping by anyway
hey minix, sorry i lost your aim when my texteditor crashed.
here is a zip file with how i think it should be. here is basically what i did.
-made the connect() function the costructor of your DB class. so now when you make a new DB class, it will connect.
-created a new DB object in your main.inc.php . make sure this is the first include in all your pages
- i took out all the other DB objects you created every one of your functions. ( like 40 of them or so =) )
- i took out all the other connect() functions ( about the same as the new objects you created)
- i took out the session_start(); in your trans.php because you are starting a new session in your main.inc.php
so basically now only 1 DB object will be created, and any function you run under that will work because you already have a connection. ( in theory )
i don't have your entire website, so it didn't make a whole lot of sense, .. but see what you can do with these.