Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged mysql
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Gets the present time and date in PHP and formats it for input into a MYSQL database DATETIME field
1
580
posted 16 years ago by TimFletcher
PHP function that creates a mySQL INSERT statement for mime types. Type are extracted from a text file.
0
792
posted 16 years ago by fabian
This is a simple class to encapsulate CURD functions. This class also includes some simple search methods.
1
951
posted 16 years ago by ecavazos
Created for my own purposes, thought I'd share though ;)
copy paste at the top of your file and it does the magic :)
31
6168
posted 17 years ago by peteypablonz
MyActiveRecord is a stand alone db abstraction layer to simplify things between php and mysql. you can download the latest version from www.wattz.net
0
922
posted 17 years ago by wattz
Just a reminder to myself, not really a snippet. When running into memory/speed issues with PHP/MySQL apps, adjust the memory_limit parameter in php.ini.
3
681
posted 17 years ago by Todd
This class operates a range of mysql functions base on arrays.
Example:
Name:
Description:
22
5406
posted 17 years ago by emuen
Returns an array of values specified for an enumerated MySQL field
2
1133
posted 17 years ago by johnself
Building a SELECT with conditional WHERE parts, given from form-get parameters.
1
749
posted 17 years ago by assbach
Simple but utilitarian function returns a numeric array of associative arrays containing an entire result set.
1
1127
posted 18 years ago by sorehead
This function first checks to see if PHP is set to automagically quote stuff. If it is, we first strip pre-quoted stuff, then (assuming our text isn't numeric), we properly quote everything.
A good bit of room for improvement here, but at the very l...
1
733
posted 18 years ago by sorehead