Hereisfun
Solid State Member
- Messages
- 15
- Location
- San Marcos CA
So this should be the insert into:
Does the table stuff have to be in order?
And this should be the display?
Ooo and im not sure if i used the font color the correct way..but it worked so oh well
unless there is a better way..![Stick out tongue :p :p](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
With this code it still came out with the wrong date :/ Hmmph its probably somthing i did wrong :/
PHP:
$query = "INSERT INTO cmmnts2 (name, date, comment, email) " .
"VALUES ('$name', 'time()', '$comment', '$email')";
Does the table stuff have to be in order?
And this should be the display?
PHP:
while ($row = mysqli_fetch_array($sql, MYSQLI_ASSOC)) {
echo '<b>Name:</b> '.$row['name'].'<br />
<b>Comment:</b> '.$row['comment'].'<br />
<b>Email:</b> ' .$row['email'].'<br />
<b><i><font color="#393939">Date Posted:</b></i> '.date('M/d/Y h:i A', $row['date']).'<br /><br /></font>';
}
Ooo and im not sure if i used the font color the correct way..but it worked so oh well
With this code it still came out with the wrong date :/ Hmmph its probably somthing i did wrong :/