MaggsWeb:7

www.maggsweb.com

Posts Tagged ‘ MySQL ’

Easy way of switching between mysql and “normal” dates (english, not american)…

<?php
function flipdate($dt, $seperator_in = '-', $seperator_out = '-')
{
return implode($seperator_out, array_reverse(explode($seperator_in, $dt)));
}
?>

OK, I found this in WordPress. I am not sure exactly how it works, but I haven’t seen this functionality before in MySQL. I am pretty sure that it is used for passing an array of variables to MySQL for use in a Tag Cloud.
[More]

Not tried and tested by me (yet) but I am assured that this is the way to do do this…
[More]

MySQL Database backup

September 29, 2009 | Comments | MySQL, PHP

Backing up a MySQL database using PHP.
[More]

I have been looking for a ‘simple’ tag cloud generator that will parse content from MySQL for ages and couldn’t find one. So I adapted – and heavily modified (reduced) – and CSS’d – the best one that I could find. It turned out nice and simple.
[More]

This handy little script can be used as a function as required, or in an include. I have used this on virtually every site that uses a a database connection.

[More]