Cooper94 Posted January 23, 2010 Share Posted January 23, 2010 Hello I am trying to make a function script for my website and it seems that even when I put this into the function page it gives me a 500 error. I thank you all for you time and for helping me out! * Code is below* <?php function Date(){ $timestamp = $row['dateRegistered']; $date = date("m-d-Y", $timestamp); echo $date; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/189498-500-internal-error/ Share on other sites More sharing options...
premiso Posted January 23, 2010 Share Posted January 23, 2010 The function name of "Date" is most likely causing the problem as date is already a function. Rename that to something like "dateDisplay" and it should fix the issue. Quote Link to comment https://forums.phpfreaks.com/topic/189498-500-internal-error/#findComment-1000266 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.