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; } ?> 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. Link to comment https://forums.phpfreaks.com/topic/189498-500-internal-error/#findComment-1000266 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.