Re: Date is not being pulled from MYSQL database, instead current date is displayed!!!
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Date is not being pulled from MYSQL database, instead current date is displayed!!!

From: ameshkin <amir.meshkin@gmail.com>
Date: Fri Mar 24 2006 - 23:49:05 CET

Still not working.

I changed the query to what you said. Here is the code. I tried three
different things. I'm not sure whats going on here. THe page is at
http://www.mytuneslive.com/ameshkin/

$day = $row_comment['unix_timestamp'];
?>

                    </td>
            <td width="55%" align="left" valign="top"><?php echo
gmdate("n-d-Y g:i A",strtotime($day));

        echo $row_comment['unix_timestamp'];
                                                        echo $day; ?> <br><br>
              <?php echo $row_comment['comment']; ?> </td>
          </tr>
        </table>
Received on Mon May 1 02:40:27 2006