Pages

Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

Tuesday, April 2, 2013

php format date


$originalDate = "2010-03-21";
$newDate = date("d-m-Y", strtotime($originalDate));


<? echo date(" \n l jS F Y", strtotime($data['availability'])) ?>

http://php.net/manual/en/datetime.format.php

Monday, June 7, 2010

Edit Form Example using php

$query = mysql_query("SELECT * FROM table") or die(mysql_error());
while ($row = mysql_fetch_assoc($query))
{
eco '';
}
Read eco as echo