Recommend this page to a friend! |
Download .zip |
Info | View files (4) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2006-01-29 (10 years ago) | 17% | Total: 766 | All time: 4,229 This week: 1,089 |
Version | License | PHP version | Categories | |||
mysqlc1 1.0 | BSD License | 4.4.4 | Databases |
Description | Author | |||||||||||||
This class is a very simple wrapper to access MySQL databases. |
|
SMyCC [Pronounced "smEEk"] Simple MySQL Connection Class) © 2005-2006 Steve Castle http://www.stscac.com Installation ------------ 1. Unpack 2. Edit database.inc.php with your server specifications 3. Move to web folder 4. Include in all necessary files you want to connect to MySQL from 5. Make the calls (see below) How to make the calls --------------------- To run the MySQL Connection, you will have to call a new instance of the class and tell it what function to run (where you want the connection to be made): $mysql = new mysql(); // This is the calling of class instance $mysql->connect(); // This is the calling of the class function To Run a query on the database: // The Query here is a sample for this instance $mysql->query("SELECT * FROM table WHERE something='something_else'"); To Close the MySQL Connection (and free MySQL/Server memory): /*You Must have run the $mysql->query to be able to use the $mysql->end function */ $mysql->end(); That's it! Questions can be sent to me at steve@stscac.com |
Files |
File | Role | Description |
---|---|---|
database.inc.php | Conf. | Database connection fields. These need to be edited with your credientials |
LICENSE.txt | Lic. | License File. This software is part of the SC License. |
README.txt | Doc. | The Readme File. Installation Instructions can be found inside. |
smycc.class.php | Class | The main class. This is to be included in the file you want to query your database from. |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.