Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using the $adb object
#10
Yes I understand the concept that the array could be too large, I just have to wrap my head around the concept that assigning via 'fetch_array' doesn't mean I'm actually getting all the info, only looping over this method will do that. Basically it means the loop is firing multiple SQL queries. 'fetch_array' gets basic data about the rows, but only the loop will get the actual data.

I'm running into some other beginner questions that will probably be easy once you get it, will continue on this tomorrow. In the meantime I'll study PDO.

About the including: is the 'Module.php' just the best way to go in most cases? In see it includes 'ModuleBasic.php', which in its turn includes a whole lot of file. Somewhere in those the $adb and $current_user are instantiated I figure.

And is it safe to assume that you always need to bring in $current_user when you want to perform DB query's?
Reply


Messages In This Thread
Using the $adb object - Guido1982 - 11-10-2015, 05:33 PM
RE: Using the $adb object - Guido1982 - 11-10-2015, 08:11 PM
RE: Using the $adb object - joebordes - 11-10-2015, 10:12 PM
RE: Using the $adb object - Guido1982 - 11-11-2015, 10:47 AM
RE: Using the $adb object - joebordes - 11-11-2015, 02:50 PM
RE: Using the $adb object - Guido1982 - 11-11-2015, 03:46 PM
RE: Using the $adb object - joebordes - 11-11-2015, 10:09 PM
RE: Using the $adb object - Guido1982 - 11-11-2015, 10:15 PM
RE: Using the $adb object - joebordes - 11-11-2015, 11:00 PM
RE: Using the $adb object - Guido1982 - 11-11-2015, 11:49 PM
RE: Using the $adb object - joebordes - 11-12-2015, 07:26 AM
RE: Using the $adb object - Guido1982 - 11-12-2015, 07:14 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)