Welcome To Snipplr


Everyone's Recent Snippets Tagged mysql



1 ... 15 16 17 18 19 Next »
Simple but utilitarian function returns a numeric array of associative arrays containing an entire result set.
1 702 posted 16 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 444 posted 16 years ago by sorehead
0 317 posted 16 years ago by collin
1 439 posted 16 years ago by gdonald
1 506 posted 16 years ago by gdonald
1 393 posted 16 years ago by gdonald
2 498 posted 16 years ago by gdonald
1 663 posted 16 years ago by gdonald
1 422 posted 16 years ago by gdonald
1 474 posted 16 years ago by gdonald
3 496 posted 16 years ago by gdonald
0 424 posted 16 years ago by deadmoon
1 455 posted 16 years ago by deadmoon
two ways of doing it. 2nd is best
0 527 posted 16 years ago by deadmoon
Select the last autoincrement index from the last inserted item in a table.
0 590 posted 16 years ago by arcturus
7 549 posted 16 years ago by brentroady
Extraido de Good PHP Tutorials, un articulo de Tim Bennett
1 396 posted 16 years ago by mate
usage is simple: $result = mysqli_query($query,db_conn('local')); for instance. if written in patterns, this should probably be a singleton, but I haven't bothered converting it - feel free to comment with your modification though!
3 470 posted 16 years ago by Aeon
1 ... 15 16 17 18 19 Next »