Jump to content

calling sql command from a text file with php


newbie8899

Recommended Posts

Hi, all..

 

is it possible to put all mysql command into a text file, while in our php file, whenever we need to execute the sql command, we just call the text file and indicate which command we want to execute?  is it possible?

 

coz i notice that if our php file is large, it will be very messy and hardly to see with all the sql command sketter around.

 

please, if anybody know how to do this? any sample?

 

thanks

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.