PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
the object of my program is to make a multiplication table by getting user input for number of rows, columns and the color you want the background of everyother row to be. I FINALLY got the table to display correctly now my only trouble is the css. i've tried it every which way i can think of...i've googled throughout the night looking for answers if anyone could help me it would be greatly appreciated. if you dont understand my problem please just ask me to clerify because i'm not sure if i'm being clear enough.
just to add more information when my program runs no value for color is stored anywhere. i believe thats what my issue is but im not sure how to fix it. at one point the value being sent to the style tag was the number from the option tag of the corresponding number but that doesnt happen anymore
You are trying to grab $_GET['color'], which, when the page is first loaded, most likely won't exist, so all the options will have a value of nada damn thing! Or, possibly the text of a PHP error, if you have errors on (undefined index). You should, in fact, be using the $rowcolors array that you use in the same line to grab the current index ($i) for the color. So, something like:
yes i fixed that problem and now when i view source code it should technically be working...but its not...maybe im still doing something wrong..i dunno