Hi Im new here.
I used to dabble 15 years ago but lots has changed.
Im not needing code but rather the general process and recommended functions as i seem to be finding way more obselete info than current.
My purposes right now are merely experimental and for learning so Im not concerned with performance on large data or security right now.

Now what i want to do is take a raw dump of table contents into an object and echo it into a grid based on the number of fields in the table.
I have this working fine right now but I want to access things like the field names and Im not very confident with manipulating data objects.

I tried below code to access information schema to count columns and its returning nothing with no errors so not sure what’s up with that.

I did a bunch of experiments with objects vs associative arrays and various functions and I’m starting to get it.
Ready to move onto move on to more advanced data manipulation and flexible pipelines that don’t contain any hard coding so still appreciate any cool tips.
Next logical step seems to be to build some generic classes with methods for common use like fetching and manipulating.