Welcome To Snipplr
Everyone's Recent Snippets Tagged mysql
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
PHP function that creates a mySQL INSERT statement for mime types. Type are extracted from a text file.
0
487
posted 15 years ago by fabian
It does not show the grants themselves, but shows all users with grants.
0
484
posted 15 years ago by therobot
This script removes (DROPS) all tables that start with foo_. Usefull if you had some CMS or application that (ab)uses table prefixing, and want to clean 0ut your database.
NOTE: the data is remove FOREVER! So take good casre: make backups and all...
2
664
posted 15 years ago by berkes
$duplicates checks and groups duplicated rows with the same field1 and field2 (like comments maybe) and $limit counts how many times a row is duplicated.
3
612
posted 15 years ago by Abe
This is a simple class to encapsulate CURD functions. This class also includes some simple search methods.
1
579
posted 15 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
3655
posted 15 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
612
posted 15 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
433
posted 15 years ago by Todd
You can generate a simple bar chart of the values by executing this command...
0
579
posted 15 years ago by zingo