JayLewis Posted April 21, 2007 Share Posted April 21, 2007 i get this error: Fatal error: Call to undefined function: makecomma() in /home/frozenf/public_html/Lottery.php on line 88 when using this on line 88: <?php echo "$".makecomma($lotto_inf->jackpot).""; Link to comment https://forums.phpfreaks.com/topic/48031-makecomma-error/ Share on other sites More sharing options...
JayLewis Posted April 21, 2007 Author Share Posted April 21, 2007 any ideas why its not working? thanks JayLewis x Link to comment https://forums.phpfreaks.com/topic/48031-makecomma-error/#findComment-234757 Share on other sites More sharing options...
Glyde Posted April 21, 2007 Share Posted April 21, 2007 makecomma is not a PHP function, nor have you stated that it is defined anywhere... EDIT I think the function you want is number_format Link to comment https://forums.phpfreaks.com/topic/48031-makecomma-error/#findComment-234758 Share on other sites More sharing options...
JayLewis Posted April 21, 2007 Author Share Posted April 21, 2007 ok ... ??? Link to comment https://forums.phpfreaks.com/topic/48031-makecomma-error/#findComment-234760 Share on other sites More sharing options...
Glyde Posted April 21, 2007 Share Posted April 21, 2007 You haven't defined makecomma as a function. Do you think that PHP just sees the function name makecomma and immediately knows it needs to do something with commas...not quite. You have to actually code the function to do what you want it to do. Additionally, as stated above, I think you want the number_format function. Link to comment https://forums.phpfreaks.com/topic/48031-makecomma-error/#findComment-234764 Share on other sites More sharing options...
JayLewis Posted April 21, 2007 Author Share Posted April 21, 2007 aah, nice one mate Link to comment https://forums.phpfreaks.com/topic/48031-makecomma-error/#findComment-234778 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.