Search
Left Quote    A clever person solves a problem. A wise person avoids it.
- Einstein    
Right Quote
 
[login] | [Register]
 

IdealMySQL Class for PHP 5.0

by: Idealws
 

Description:


This is a MySQL class I wrote to use in my programs. It will allow you to do the following: - Connect to a mysql database - Query a mysql database to include * INSERT|DELETE|UPDATE|REPLACE|DROP * SELECT|SHOW|DESCRIBE|EXPLAIN - Catch errors and email them to the admin - Check variables to make sure they only contain particular characters All errors are in the file errors.txt for easy adding and use. The look and feel of the error output to the user is controlled by a style sheet. There is plans to add more to the class at a later date or as needed. If you have any suggestions please let me know. You can download all the file here: http://www.idealws.com/classes/mysql/IdealMySQL.class.zip All of the code is listed below. The only file missing is the image file for the error output the user. This class requires php version 5.0 Class is documented.

Code:
Class File: IdealMySQL.class.php
<?php 
// You can change this to show no errors as we 
// are collecting and showing them ourself. 
error_reporting(0); 
/** 
* IdealMySQL, MySQL class 

* This is a MySQL class for Idealws. This will 
* be used in all projects that use a MySQL database. 
* @author Ray Cuzzart II <ray@idealws.net> 
* @version 1.0 
* @package Idealws 
* @copyright 2007 Idealws - All Right's Reserved 
* @example test.php 
*/ 

/** 
* THE SOFTWARE IS PROVIDED 


 


Comments:

  ghostofjava
  Subject: "so cool" Date: Mar 08 2008 at 11:33 am    
ohhh thanks so cool really this is very nice ...
You Must be signed in or a member to comment.


Code Stats

Code Stats

18,303 Views
1 Total Comments
0 Rating of 5 ( Votes)

Options

Code Options

· Login to Rate This Code
· Login to Post a Comment
· Read more by this author
Digg This Code! Del.icio.us: Bookmark This Code Reddit: Bookmark This Code! BlinkList: Blink This Code! YahooMyWeb BlogMarks: Add This Mark! Furl: Save This Code Spurl: Mark This Code!

Code Samples

Related    

· Database Connection
· Users Online
· Pagination
· Comments Script
· CAPTCHA Image





"AllSyntax.com" Copyright © 2002-2017; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank