I think I finally got it! I think that figuring out the mathematical equation behind this was the hardest part. Math is def not one of my strong points. I was able to figure out the php coding for the most part, but couldn't figure out how to add the sum of the previous two numbers (I kept adding one instead). Once I was walked through the equation, it made a lot more sense. Hopefully this is correct.
Here is my site for the Sign challenge! A huge shoutout to Nancy for helping me debug the messy code I originally had written! In addition, I used this site for some ideas: http://www.2wap.org/forums/index.php?showtopic=4866&pid=32711&mode=threaded&start=. However, this site led me wrong in multiple ways! Citing it anyways to be safe!
The CSS wouldn't copy over to the php file. I couldn't figure that part out, since I copy/pasted the exact link line from my HTML. I don't know why it didn't work.
The CSS is still there, it's just that it is only selecting elements that appear on the first page. The second page has none of those elements to select. Should change the selector to "body", since both pages have a "body" tag, and the design rules you have apply generally to the body anyway...
Oh my gosh, it works. After two days of trying to figure out why perfectly good code wouldn't work, Dr. Halavais told me that I had to zap gremlins in my PHP text, because the text was imported.
Anyhow, I'm currently teaching my freshmen a book called A Long Way Gone, and since I need to find interactive ways to keep their interest buoyant, I thought this quiz might actually work in my own classroom.
Thanks to Jen Rock and Dr. Halavais for their help in getting this accomplished.
This is a nice, simple tutorial on how to submit forms using php and jquery. It's done by a 20-year-old who admits he was lost the first time he tried to write these codes. That made me feel better!
When you asked for a visual depiction of something that looks like dice, I wasn't really sure if you meant game dice, or Andrew Dice Clay, so I included both. Which serendipitously happens to cover the "two dice" requirement as well... right? :) Tee hee hee. Anyway, here you'll find some html, css and php combined with images.
An attempt at the Fibonocci sequence. I couldn't seem to get it to separate into lines, but if you look at the page source it looks great.
Thanks to these guys for getting me this far: http://www.codecodex.com/wiki/index.php?title=Fibonacci_sequence
This is a brief, six question quiz to see how much of a Harry Potter nerd you are. If you get the easy ones wrong, the response you receive on the answer page will insult you accordingly. Ch.14 in the HTML & CSS book was incredibly helpful, as was Ch.1 Head First PHP & MySQL. I love the Head First books. I found this challenge to be easier than the dice, believe it or not.
The following is a site complete with all sorts of tutorials for PHP and MySQL. It is separated by topics such as Setup, Admin, Syntax, Database, Connect, etc, and allows you to jump in where ever you feel the need to. I'm a newbie, so this site has been great to read through.
here's the 'home' for my 'rate my class' project.
as of this posting, i've got the structure of the site all laid out, it just needs some cascadingly stylish touches. i didnt use any javascript on this yet either. i just wanted to get something posted in time for the class deadline.
each class has its own php page, which pitches and catches to itself, and its own mysql table. the nav drop down links directly to each course.
enjoy!
This is a link to a working comments page (linked to a database table) which requires a valid name and email address before submission using Javascript. An error message appears & fades at the bottom of the form if something is omitted. I also made the same thing happen using PHP, so there are also messages at the top of the page from that code. I got the Javascript from http://www.leigeber.com/2008/04/dynamic-inline-javascript-form-validation/, and included this citation in my js page. Upon submission, a thank you message appears at the top of the form.
This is my rendering of the comment submit section. Everything seems to be submitting correctly, however, i just can't seem to get the database to populate. I reviewed the videos mutiple times with no answer. I thought it may be the 'localhost' issue, but bluehost.com does not give any of the options that we saw on 'nfs'...after about 7 hours of troubleshooting and every possible configuration... if anyone has ideas i would love to hear them....other than that, the site works flawlessly. Hope you enjoy.
Well, "other than that" is pretty much at the core. I wouldn't have known it was a problem if you hadn't mentioned it (will have to change the assignment). But this is a really core thing to figure out. If you can't actually store the material, then you won't be able to do this sort of exchange when you want to make your own stuff.
There's nothing obviously wrong with your code. My guess is that there is something up with your username/pass or table names, but without an "or die" statement, we'll never know...
Recipe with comment form - much love to the Head First PHP & MySQL book, whose fabulous chapters 2-4 were very helpful, and kept many tears away. And love to Erica, for letting me know that creating the additional user was a MANDATORY step. <3
Finally! The mistake I was making was silly, and I was so annoyed at myself when I realized what it was.
Here in all of its purple glory (it's my favorite color, so prepare to see lots of it this semester), I present to you my Fibonacci sequence.