Jump to content
MakeWebGames

date function


WarMad
 Share

Recommended Posts

i am trying to create the events page for a new engine im making and im getting this error

Fatal error: Uncaught Error: Undefined constant "F" in /storage/ssd1/568/18613568/public_html/events.php:38 Stack trace: #0 {main} thrown in /storage/ssd1/568/18613568/public_html/enents.php on line 38

 

this is the line causing the issue

  <td align="right">'.date(F.' '.d.', '.Y.' '.g.':'.i.':'.sa,$row['time']).'</td>

 

 

fixed thanks adam

Link to comment
Share on other sites

On 7/22/2022 at 6:49 AM, Dayo said:

You don't need all of the '. .' etc ...

This should work as you intend

<td align="right">'.date("F d T g:i:sa", $row["time"]).'</td>

<td align="right">'.date("F d T g:i:sa", $row["time"]).'</td>

your amazing thank you sorry for the late reply

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...