Algorithms Arrays Passwords Uncategorized
Commerce Uncategorized
Databases Abstraction Layers Informix LDAP MS SQL MySQL ODBC PostgreSQL Uncategorized
Date & Time Calculators Conversion Translation Uncategorized
Discussion Chat Forums Guestbooks Polls Uncategorized
Email Validation Uncategorized
External Uncategorized
Files and Directories Uncategorized
Games Uncategorized
Graphics 3-D Graphs Resizing Thumbnails Uncategorized
HTML Forms Menus & Navigation Source Viewers Tables Templates Uncategorized
HTTP Authentication Cookies File Uploading Uncategorized
I18N Uncategorized
Math Uncategorized
Miscellaneous Uncategorized
Searching and Trees Uncategorized
Security Uncategorized
Text Uncategorized
Utilities Calendars Counters Link Checkers Weather Uncategorized
XML Uncategorized
| php sample source codes |
|---|
|
Now with enhanced features - A lean and mean MYSQL Database Manager (only 45 KB) to manage your simple MYSQL databases anywhere on the web. You don't have to have extensive knowledge of SQL to create and manage database for your site.
|
|
This MySQL Class allows an author to easily run SQL queries and catch/log errors in case of failure. While there are other classes that do this, I use my own because it was built for projects of mine that needed it, however it has been adapted for general use. The log functions are good for both debugging and keeping the error msgs away from visitors presenting them with a clean neat error message if there is a problem with MySQL or a query.
|
|
Build an array of associative arrays that can be accessed by $ARRAY[$index]["DB field name"]. Very handy for pulling select fields from a large table.
|
|
BNRS posts user submited data to a specific MySQL table. And is quite user interactive, It says "Thank you John Doe for registering.... An email has been sent to johndoe@hotmail.com
|
|
Extremely easy to use and full-featured MySQL class with measured queries.
|
|
This class provides programmers with a more time efficient way to interact with mysql databases using php and sql.
|
|
Shows two methods on how to convert a MySQL date/time string into a UNIX timestamp that can be inserted into tables or used with date().
|
|
takes comma delimited file with first line of field names, <br>creates MySQL table
|
|
<B>The Database Template</B><BR>
Easy DataBase use. Make a database with ANY program.<BR>
<LI>MySQL Database
<LI>Replace any { } with your colloms
|
|
dbrowse allows the user to examine a wide variety of information about a MySQL database including a list of tables, each table structure, properties and metadata, keys and indexing, records in each table, and the server status, variables and threads.
|
|
Create a form from a MySQL table with 3 lines of code.
|
|
Demo for SQLites with php 5 example code
|
|
//to get list of option html tags from a table
|
|
This function will duplicate an existing dataset.
|
|
This script takes the contents of a MySQL table and dumps it to either a dynamically-generated MS Word File (file with ending '.doc') or a dynamically-generated MS Excel File (file with ending '.xls'). You can place this script on any Unix/Linux or Windows Server running PHP & MySQL, but you have to access it using a browser on a Windows computer with Word or Excel installed on it. This script does not use COM objects and does not support multiple Worksheets in Excel. It can be used not only for creating complete dumps of MySQL tables (as Word or Excel files), but can be very easily modified to support just about any kind of select statement you'd like to use.
|
|
Show each record in your database with a dynamic loop.
|
|
This is a class written for simplifying the mySQL operations.<BR>This class makes the following tasks very easy<BR><UL><LI>Database Connection Handling</LI><LI>Checking the existance of any record</LI><LI>User validation</LI><LI>Registratons</LI><LI>Modifying Records</LI><LI>Getting Records</LI><LI>Deleting Records</LI><LI>Executing Queries</LI><LI>Bug Reporting</LI></UL><BR>It helps you in object oriented programming and also makes your code readable. Each function in this class just return true or false or any data item if generated by the query.It is very easy to track bugs in it. Functionality of each function is fully defined with examples where necessary.
|
|
This is fuction to insert or update in to datbase tables
|
|
easily create your update query from
a list of cgi params which have the same names as your mysql fields
|
|
I ran one of my database front-ends that worked great in PHP3, under PHP4 and found that back-slashes started poping up like rabbits on fertility hormones.
After a little research into the problem, I found out what it was: mysql_escape_string, a function not availble in PHP3 was implemented "transparently" in PHP4 and (unfortunately) was installed "backwards": It escapes the result set, which is not how string escaping was intended.
The fix: I've made a fix called mysql_unescape_string. You won't find an analog of it at www.mysql.com because its a bastard function specifically for taking care of the PHP4 implementation problem.
See the example section for usage of it...
(Also, see the "mysql_escape_string" function in this same section for my original fix for string escaping in MySQL)
|
|
This snippet will display the fields supplied.
|
|
A simple function to build an insert query from an associative array. Changes to the table structure will be reflected automatically, no need to modify code.
|
|
Complet functions for fast code generation and very small size HTML files.
With error control and example.
|
|
This is a very simple and useful database function that is used within the XPC Conceptual CMF
|
|
<B>list_db.php</B> is stand alone PHP 4.0 script dedicate to print structure of selected database like list of HTML tables with full information about fields in to tables.<BR>
<BR>
Parameters of script are :<BR>
<UL>
<LI> Host name (if missing, $SERVER_NAME is use) of MySQL server
<LI> Port number of MySQL server
<LI> UserID to connect database
<LI> Password of UserID to connect database
<LI> Database name
</UL>
<BR>
|
|
What is the most common way to access data in the world today? If pressed for this answer, I would have to say it is Microsoft DAO (a.k.a. Data Access Object) whether it be with a VB, Access or VC++ front-end or with an Access or enterprise-level back-end. The greatest single group of application programmers use DAO, period.
This first stab at providing the most important parts of DAO (i.e. those that are use about 90% of the time) is my hope that many ASP programmers, sickened by Microsoft's insistance that web-based programming be done with the cumbersome, twitchy, and many times over-complicated ADO (ActiveX Data Object) may turn to PHP and MySQL without having to relearn a different data access methodology.
There are some important things missing in this first release. Recordset objects don't have the old "edit/update" functionality, and in this first release don't even have a findfirst/findnext method (but it is coming). But even with all the missing pieces, this release allows you to do everything you need to: query the database, execute SQL commands, traverse recordsets, object-based approaches. AND its available by including just one small file at the top of every PHP script you write.
Email me with your thoughts people! I'll get to it faster if there is a need out there!
|
|
Connecting to two different databases in one script using MySQL
|
|
This script is very simply.<br>With this application you can connect to a MySQL DB.
|
|
This class makes querying and fetching data from a database much easier. It's easy to understand, and requires little lines of code to use. You are able to execute multiple queries at a time, and fetch their results in any order you wish (which was somewhat of a problem with earlier versions of this class).
|