What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of
373,565 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are
3,826 IT professionals currently interacting right now!
Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
This is a recursive function I made to draw purely CSS bar graphs. You pass it an array of data and the total amount, example:
$someData = array('Oranges'=>4, 'Apples'=>10);
$total = 14;
echo drawCSSGraph($someData, $total);
Also, you can pass it options in the form of an array or as space...
(View Snippet) This is about as simple as it gets with menu generators. Everything is explained in the code. Note that the menu is simply an unordered list so to pretty it up it really relies on the CSS.
If you don't want to write any CSS of your own here is a sample stylesheet.
#Menu...
(View Snippet) This program was inspired by my college math 1 class. It takes the values of a1, a2, b1, b2, c1, c2 and solves, displays the equation and shows the work. It also stops if the equation is dependant or inconsistent (Zero division)
Cramer's Rule
if a1x+b1y=c1 and a2x+b2y=c2
then...
(View Snippet) I created a bowling game, Which for the most part works correctly. I toiled for hours trying to figure out how to do the scoring so i gave up. Its fairly simple code so not much of a description needed.
(View Snippet) Well its fairly self explanatory, its a program that shows that calculates the hypotenuse using the pythagorean theorum, It displays the values of the sides and shows a crappy ascii art right triangle with the values input and the later found values
(View Snippet) Ok I greatly modified a tutorial to have a completely different interface, a highscore list and a little tiny really rare easter egg.
to get the highscore list. I want to figure out how to sort the highscore list if it is possible. And dont worry about it freaking out, if you type a letter instead...
(View Snippet) This is the first program I wrote, well besides Hello world. I put about a lot of hours into this code, it started as a divisional calculator than i evolved it so it would ask your name and calculate your average and i was messing around with the system ("") code to manipulate it to change the text...
(View Snippet)