Welcome To Snipplr


Everyone's Recent Snippets Tagged mysql



1 ... 15 16 17 18 19 Next »
1 472 posted 16 years ago by Shpigford
This will return the number of seconds between now and when the time field was inserted.
0 586 posted 16 years ago by wolfie
Simple but utilitarian function returns a numeric array of associative arrays containing an entire result set.
1 676 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 425 posted 16 years ago by sorehead
0 306 posted 16 years ago by collin
1 417 posted 16 years ago by gdonald
1 494 posted 16 years ago by gdonald
1 381 posted 16 years ago by gdonald
2 473 posted 16 years ago by gdonald
1 628 posted 16 years ago by gdonald
1 398 posted 16 years ago by gdonald
1 458 posted 16 years ago by gdonald
3 482 posted 16 years ago by gdonald
0 406 posted 16 years ago by deadmoon
1 437 posted 16 years ago by deadmoon
two ways of doing it. 2nd is best
0 503 posted 16 years ago by deadmoon
Select the last autoincrement index from the last inserted item in a table.
0 576 posted 16 years ago by arcturus
7 521 posted 16 years ago by brentroady
Extraido de Good PHP Tutorials, un articulo de Tim Bennett
1 379 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 455 posted 16 years ago by Aeon
1 ... 15 16 17 18 19 Next »