newbie8899 Posted January 23, 2008 Share Posted January 23, 2008 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 Link to comment https://forums.phpfreaks.com/topic/87311-calling-sql-command-from-a-text-file-with-php/ Share on other sites More sharing options...
$username Posted January 23, 2008 Share Posted January 23, 2008 Not to for sure what are are looking for but you can look into the "include" function with your text file. something like this might be what you are looking for. <?PHP include 'yourfile.php'; ?> Brett Link to comment https://forums.phpfreaks.com/topic/87311-calling-sql-command-from-a-text-file-with-php/#findComment-446579 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.