Why is my mysql database timestamp changing by itself?
Posted
by Scarface
on Stack Overflow
See other posts from Stack Overflow
or by Scarface
Published on 2010-04-05T23:14:19Z
Indexed on
2010/04/05
23:43 UTC
Read the original article
Hit count: 401
Hey guys quick question, I have an entry that I put in my database, and as I echo the value, the value in the database stays the same while the data echoed keeps increasing, which is messing up my function. If anyone knows whats going down, would appreciate any suggestions.
<?php
include("../includes/connection.php");
$query="SELECT * FROM points LEFT JOIN users ON points.user_id=users.id WHERE points.topic_id='82' AND users.username='gman'";
$check=mysql_query($query);
while ($row=mysql_fetch_assoc($check)){
$points_id=$row['points_id'];
echo $timestamp=$row['timestamp'];
}
?>
© Stack Overflow or respective owner