Ok, new question...
I need to get data from one mysql row, set it as $ad
The following code will convert it to readable date format.
<?php
function adConvert ($ad) {
$seconds_ad = $ad / (10000000);
//86400 -- seconds in 1 day
$unix = ((1970-1601) * 365 - 3 + round((1970-1601)/4) ) * 86400;
$timestamp = $seconds_ad - $unix;
$normalDate = date("F d, Y", $timestamp);
return $normalDate;
}
echo adConvert($ad);
?>
Now i need to insert it in a new row.
Get value from row1 convert insert in row2
Hé hé, i only have dificoult questions...
Now i use a form, but i need a code that does it automaticly:
<html>
<head>
<?php
$ad = $_POST['keyword'];
echo "<title>" . adConvert($ad) . "</title>";
?>
</head>
<body>
<?php
function adConvert ($ad) {
$seconds_ad = $ad / (10000000);
//86400 -- seconds in 1 day
$unix = ((1970-1601) * 365 - 3 + round((1970-1601)/4) ) * 86400;
$timestamp = $seconds_ad - $unix;
$normalDate = date("F d, Y", $timestamp);
return $normalDate;
}
echo adConvert($ad);
?>