Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mmgrant73/easyphpmysql
EasyPHPMYSQL is a command-line python script that is used to write a PHP class files that connect and manipulate data in a MYSQL database just by answering a couple question about the database. Also, it writes an optional login script for an administrator backend and an optional example script that shows a person how to use the php class.
https://github.com/mmgrant73/easyphpmysql
administration-backend administrator-backend database manipulate-data mysql-database php python python-script
Last synced: about 1 month ago
JSON representation
EasyPHPMYSQL is a command-line python script that is used to write a PHP class files that connect and manipulate data in a MYSQL database just by answering a couple question about the database. Also, it writes an optional login script for an administrator backend and an optional example script that shows a person how to use the php class.
- Host: GitHub
- URL: https://github.com/mmgrant73/easyphpmysql
- Owner: mmgrant73
- License: mit
- Created: 2013-09-09T17:52:41.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-09T18:58:28.000Z (over 11 years ago)
- Last Synced: 2023-08-03T18:22:11.907Z (over 1 year ago)
- Topics: administration-backend, administrator-backend, database, manipulate-data, mysql-database, php, python, python-script
- Language: Python
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
easyphpmysql
============EasyPHPMYSQL is a command-line python script that is used to write a PHP class files that connect and manipulate data in a MYSQL database just by answering a couple question about the #database. Also, it writes an optional login script for an administrator backend and an optional example script that shows a person how to use the php class.
Note: This project is in the beta stage; thus, there are probably a couple of bugs that I still need to address
Requirements to use this python script:
---------------------------------------
The following python modules need to be installed to use this script:
* MySQLdbTo install this modules, open the terminal and enter the following:
```
pip install MySQL-python#if you have Ubuntu, you can enter the following command
sudo apt-get install python-mysqldb
```
Usage of this script:
---------------------
To run and use this script, open the terminal and go to the script folder. Then enter the following command.
```
python ./easyphpmysql.pyWhat is the host name for the database (ie - localhost)?
localhostWhat is the userename for the database?
usernameWhat is the password for the database?
passwordWhat is the name of the database?
testdbWhat is the filename for the php class?
test.phpWhat is the name of the php class?
testclassDo you want login script in the php class (y)es or (n)o?
yesWhat is the name of the table with the login information?
logintableWhat is the column name that holds the username?
userWhat is the column name that holds the password?
passwordDo you want example php files to be wrote to demostrate the php class (y)es or (n)o?
yesThe files has been written. Finished!!
#That is it. Now you should have a php class file called test.php, a php login script called login.php
and an example php file that shows you how to use the php class called example.php```