Jump to content

[SOLVED] function class and sql


jonniejoejonson

Recommended Posts

If you have a class.

Within that class you have a function.

Witihin that function you have an sql statement to select some data from mysql.

 

In the main script you load your class.

You then execute the function.

 

My question: Has the main script ran the sql in the function at the point where the class was loaded... or from when the script executed the function?

 

kind regards to any responders.. J

Link to comment
https://forums.phpfreaks.com/topic/179181-solved-function-class-and-sql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.