first submission:submitting first snipplet

apphp-snippets's Recent SnippetsTagged sql

« Prev 1 Next »
Here you may find some useful snippets for calculating relative time for different purposes: to get info from a column within certain date, like the latest 7 days, to get time interval etc.
0 695 posted 9 years ago by apphp-snippets
Lets say you have a table with field called "tags" that consists from tags separated by commas and you want to check whether it includes a required tag. Here the simplest ways of doing that.
0 734 posted 10 years ago by apphp-snippets
Here the simplest way of selecting random rows from the MySQL database with using "ORDER BY RAND()" clause in the query.
0 874 posted 11 years ago by apphp-snippets
« Prev 1 Next »