JKgraphiks web&design&code |
code snippets, thoughts, music, design. JKgraphiks create websites in East Yorkshire and provide web design services in the area. Based in Driffield, but serving throughout the UK. |
I have moved this tiny tutorial to:
http://blog.yorkshire-media.co.uk/2012/slicebox-mod-automatically-show-info/
Thanks :)
you can buy a polaroid camera for about £20 - (specifically the Polaroid 600P). however to buy the film costs around £2.50 PER PHOTO! looks like its instagram for me…
check it out if your bothered….
My fan boy days are long over. I like apple products, I own a few.
Have a look at the compilation linked at the bottom.
The latter images are copying, meh, let the courts deal with that. The top one is lying.
I don’t like copying, but I hate it when large companies try to confuse unwitting consumers into buying their products.
Samsung have included iconography from Apple to subtly make out that there is no difference between a samsung product and an Apple one. Eg: ‘Oooh, samsung have the AppStore too!’.
this is a rare beauty!
HTML5 goodness to those with the nowse to use a decent browser, for every one else, decent fallback. spicy. :)
Joe Goddard - Gabriel. Tune.
the wedding search is the only wedding directory with availability.
You can quickly and simply ‘explode’ the timestamp right in your SQL by using the following:
SELECT *, MONTH(`timestamp`) as `Month`, YEAR(`timestamp`) as `Year` FROM `news` order by timestamp desc
From that you have now made (temporarily) two new fields: Month and Year.
You can call them in your while loop (or which ever you like) as you normally would any other field in the array:
$row['Year'];
:)
A little tricker is Month Name to Month Number. IE: September -> 9
set up your loop and run as follows:
for($i=1;$i<=12;$i++){
if(date("F", mktime(0, 0, 0, $i, 1, 0)) == $month_name){
$month_number = $i;
}
}
I used the date function today to do a number of different date conversions. First of which is changing a month number into the full name. IE: 9 -> September
here you are :)
date( 'F', mktime(0, 0, 0, $monthNumber) );