Useful script for execute SQL request and execute them online from PHP.
git clone https://github.com/asubit/execute-mysql-request-from-php.git
wget https://github.com/asubit/execute-mysql-request-from-php/archive/master.zip
unzip master.zip
vi script.php
Write your specific configuration parameters for :
- SQL Host
- Database name
- Database user
- Database user's password
- Acces the file from : http://www.your-domain.com/script.php
- Write SQL request in the form
- Click "Execute"
- The results are displayed in a table under the form
vi script-cli.php
Write your specific configuration parameters for :
- Translation
- SQL Host
- Database name
- Database user
- Database user's password
- From shell promt execute following :
php script-cli.php
- The results are displayed in prompt