Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged mysql



0 1717 posted 18 years ago by mikegreen
I deleted the old one by accident trying to edit it.
9 3532 posted 18 years ago by mattkenefick
1 1703 posted 18 years ago by mikegreen
Expands a MySQL / Gzipped file and executes it's queries.
0 1841 posted 18 years ago by mattkenefick
Gets the present time and date in PHP and formats it for input into a MYSQL database DATETIME field
1 1328 posted 18 years ago by TimFletcher
0 1219 posted 18 years ago by estebant
4 1950 posted 18 years ago by mswallace
PHP function that creates a mySQL INSERT statement for mime types. Type are extracted from a text file.
0 1540 posted 18 years ago by fabian
1 1790 posted 18 years ago by AgentPhoenix
This is a simple class to encapsulate CURD functions. This class also includes some simple search methods.
1 2158 posted 18 years ago by ecavazos
adapted from http://www.gotocode.com/art.asp?art_id=275&
0 1944 posted 18 years ago by clapfouine
Created for my own purposes, thought I'd share though ;) copy paste at the top of your file and it does the magic :)
31 8738 posted 18 years ago by peteypablonz
5 1930 posted 18 years ago by jrphelps
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 2100 posted 18 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 1447 posted 18 years ago by Todd
to use apostrophs in the field values i.e. st john's
0 1355 posted 18 years ago by valcartei
Don't do it this way. This was written so long ago.
90 13235 posted 19 years ago by llbbl
This class operates a range of mysql functions base on arrays. Example: Name: Description:
22 12660 posted 19 years ago by emuen
4 3147 posted 19 years ago by llbbl
Usage: $_POST = mysql_real_escape_array($_POST)
3 2973 posted 19 years ago by d4rk
13 3305 posted 19 years ago by johnself
Returns an array of values specified for an enumerated MySQL field
2 2295 posted 19 years ago by johnself
1 1881 posted 19 years ago by drwitt
Building a SELECT with conditional WHERE parts, given from form-get parameters.
1 1611 posted 19 years ago by assbach
Simple but utilitarian function returns a numeric array of associative arrays containing an entire result set.
1 2028 posted 19 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 1547 posted 19 years ago by sorehead
0 1411 posted 19 years ago by collin