Useful php function
came across this really cool function the other day.I have a database full of prices for items, but they are stored without a comma seperating the thousands.(like this 30000 instead of 30,000).php provide a function to help with this. $number = 1234.56;// english notation (default) $english_format_number = number_format($number); // 1,235 // French notation $nombre_format_francais = number_format($number, 2, ‘,’, ‘ ‘); // 1 234,56 $number [...]
Javascript & CSS Drop Down Menu?s
We’ve all seen them. someone has on their site a menu navigation similar style to applications on your system. Personally I don’t like this type of navigation, I do realize that some people out there do, so I thought that i would create one that anyone can freely use. My example shows a list of 5 main menu [...]
Update on Easy Php Calendar
Update to my last post. It seems that I didn’t quite see what the code in Easy PHP calendar was actually doing. so here is my revised function for tying in your user DB with Easy PHP Calendars system. The key part is that is has to work out how many users you have, so that it [...]
Easy PHP Calendar?.
….. Not so easy* * = If you want some extra functionality that isn’t already included. I have been using easy php calendar for a while now. I think it is great. It is looks really nice, easy to implement into a site, and get something up and running very quickly. The problems begin when you want to [...]