I just got my site to connect to my database and it spit out the correct info. I also made my first counter. These are tiny things but I get really excited to see any progress at all.
Comments:
a good start
Cool, an excellent first step! Maybe try an address book next… seems simple but it can easily get complex!
Are you writing all the code from scratch or using cut-n-paste? Can you understand a function prototype or do you require the examples? Just wondering :-)
As of now, I don’t understand the functions and am looking at examples. I’m going through a book and doing all of the exercises, but it hasn’t clicked with me yet. I think I keep trying to skip ahead too soon.
baby steps
Sounds familiar, I was once in the same exact boat!
One of the keys here is the understanding of types. After this, learn how to read and use function prototypes. They may look scary at first but really they aren’t. Without a doubt you’ll be running down the street yelling Eureka!!! in no time.
See if this makes sense:
http://php.net/manual/about.prototypes
If not, please explain why. It also refers to the section on types and being comfortable with strings is most important. Strings strings strings… it’s all about the strings!
Basically, at some point in time you should be able to ask yourself “I need to find how many times ‘blue’ is used inside the text living in $story_of_colors” so you might:
a) Go to the string function reference: http://php.net/ref.strings
b) Look for words like count
c) Find substr_count()
d) Read the prototype
e) Come up with $count = substr_count($story_of_colors, ’ blue ‘);
f) Move on to the next problem…
Woohoo! Like most things it takes baby steps except in programming it’s so easy to use other peoples steps, like a… backpack? Err, or something like that ;)
takemebowling has gotten 2 cheers on this entry.
Dan Leatherman cheered this 2 years ago
philip olson cheered this 2 years ago

