Welcome To Snipplr
Everyone's Recent Snippets Tagged mysql
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This class operates a range of mysql functions base on arrays.
Example:
Name:
Description:
22
5409
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
2 things here. currency (euro) with in a 2.00 format and select entries older than 4 weeks = 28 days
2
818
posted 17 years ago by assbach
useful if a "valid until" should have an exact ( in this case far future ) value.
0
712
posted 17 years ago by assbach
Building a SELECT with conditional WHERE parts, given from form-get parameters.
1
749
posted 17 years ago by assbach
This will return the number of seconds between now and when the time field was inserted.
0
976
posted 18 years ago by wolfie
Simple but utilitarian function returns a numeric array of associative arrays containing an entire result set.
1
1129
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
735
posted 18 years ago by sorehead