- Joined
- Jun 27, 2009
- Messages
- 1,571
- Reaction score
- 170
Hey Y'all,
So I decided to recode my home page. But I think I'm getting Syntax Error.
When I use this Code; the website works fine.
When I add this line to where it shows Posted On: it breaks the page making it all white.
I'm trying to get it to show Date that the image was posted on.
So I decided to recode my home page. But I think I'm getting Syntax Error.
When I use this Code; the website works fine.
PHP:
<?php
$getmyphoto = mysql_query("SELECT * FROM camera_web WHERE user_id='$id'");
while($rowing = mysql_fetch_assoc($getmyphoto)){
$photo = $rowing['url'];
$time = $rowing['timestamp'];
echo '
<div class="habblet-container">
<div class="cbb clearfix green">
<div class="habblet box-content" style="align:left">
<b>Posted on:</b>
<hr>
<div><img src="'.$photo.'">
<hr>
</div>
</div>
</div>
</div>
';
}
?>
When I add this line to where it shows Posted On: it breaks the page making it all white.
Code:
' . date('l d F Y g:i:s', .$timestamp. '
I'm trying to get it to show Date that the image was posted on.
Last edited: