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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.