Simple MySQL DB Class





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 3 4 Next »
17
Date Submitted Mon. Oct. 9th, 2006 2:16 PM
Revision 1
Beginner adorkable81
Tags Database | PHP
Comments 2 comments
Database Class with quick connectivity and useful database functio
-15
Date Submitted Thu. Oct. 12th, 2006 3:28 PM
Revision 1
Beginner ammonkc
Tags Anti-Injection | Injection | mysql | PHP | SQL
Comments 5 comments
Anti-QSL Injection. I'm sure it could be better, so any improvements are welcome.
12
Date Submitted Thu. Oct. 12th, 2006 3:32 PM
Revision 1
Beginner ammonkc
Tags mysql | Pager | PHP
Comments 2 comments
This is a mysql php pager class that I found online somewhere and modified.
8
Date Submitted Thu. Jan. 11th, 2007 9:47 AM
Revision 1
Scripter Casper42
Tags ASPX | SQL | VB.NET
Comments 2 comments
This routine will get an image stored in a SQL database (IBM Informix shown here) as a BLOB and return it to the screen.

To place this on an HTML page simply add

I have an MD5 hashed version as well, but can't share that...(So you can have encrypted id's passed)

Have fun,
Jeremy
4
Date Submitted Sat. Aug. 26th, 2006 10:17 PM
Revision 1
Beginner cf_ernie
Tags "SQL Server" | ColdFusion | SQL
Comments 1 comments
This is a little script I wrote that copies your database through a cfquery statement

Enjoy,
Ernie
ernest.breau@gmail.com
6
Date Submitted Thu. Aug. 31st, 2006 8:44 AM
Revision 1
Scripter ctiggerf
Tags API | Database | mysql | Perl
Comments 3 comments
A database API written in Perl for a MySQL.

You will need to edit the settings for your server.

Enojy
6
Date Submitted Fri. Jun. 16th, 2006 8:45 AM
Revision 1
Beginner cyu
Tags mysql
Comments 0 comments
Creates a new user with all privileges when logging in from localhost.
5
Date Submitted Fri. Jun. 16th, 2006 8:56 AM
Revision 1
Beginner cyu
Tags mysql
Comments 0 comments
List the databases on a MySQL serve
21
Date Submitted Tue. Oct. 24th, 2006 8:13 PM
Revision 1
Helper dohpaz
Tags mysql | mysqli | PHP
Comments 4 comments
If you've ever wanted to build an application that can both find the distance between two zip codes, and find zip codes within a specific radius of another zip code, then this is the snippet for you.

I've tried to build this before using PHP4 and MySQL 4 and have found it to be painfully slow for a one-user connection over a Local Area Network (LAN). So, before you continue reading, I must make it abundantly clear that this method requires PHP 5 and MySQL 5.

This is because in PHP5, we will need the MySQL-Improved interfaces, and in MySQL 5, we will need functions and procedures.

Using functions and procedures in MySQL puts the weight of the calculations on MySQL, where they will run hundreds of times faster than if PHP were to attempt to do the work. In addition, using functions and procedures is still hundreds of times faster than carefully crafted SQL statements (one benchmark took over 10 seconds using a WHERE clause, while the function + procedure method took around .12 seconds--note the dot).

Since I am not a mathematician by trade, I found the necessary calculations using Google.

For the "Great Circle Distance" formula, I used Meridian Word Data's website. For the radius finder, I used another that unfortunately I do not have off the top of my head right now. I will look for it again and repost it for proper accreditation.

For the zip code database, I am using the free zip code database from CFDynamics.

Below, you will find the database and table schema, the functions and procedures, and also a demo PHP script to see all of this put into action. As a courtesy, you may download a dump of this database from my website. It's uncompressed size is 3.4M, and it's compressed size is 537K. The checksum is available here.

Please leave me comments, suggestions, questions, and/or rants about this snippet. I feel this is a very useful bit of code, and hope that others out there may find as much use from it as I will be.
9
Date Submitted Mon. Feb. 20th, 2006 11:22 AM
Revision 2
Beginner elbartoli
Tags connect | display | mysql | PHP
Comments 1 comments
Connect to MySQL db & display result from Table query
« Previous 1 2 3 4 Next »