July 4, 200818 yr Hey just a stupid problem, I have a post function that allows anyone to send a feedback on my page, and I have this code to show the date : <?php echo date('F jS Y • H.i A', $data['timestamp']); ?> And this is where I want to put it : echo '<p>' . $data['message'] . '<br /><span class="after-text">By ' . $data['username'] . ' </span></p><br />'; somewhere after the username, but I don't know how. Well thanks .
July 4, 200818 yr Try echo '<p>' . $data['message'] . '<br /><span class="after-text">By ' . $data['username'] . '<br />'. date('F jS Y • H.i A', $data['timestamp']) .'</span></p><br />'; I have added a line break as well - just remove it if you don't want it!
Create an account or sign in to comment