My turn to learn PHP
primesuspect
Beepin n' BoopinDetroit, MI Icrontian
It's time. I have to learn PHP to be competitive in business.
So I am asking for help from you, my friends.
No, not "how do I do this" kind of help... More like, 'Give me an assignment' type of help.
I learn best when I have a project or a goal to accomplish. I am working my way through PHP and MySQL Development by Sams.. I really like the style so far, I was sick of all the other books that gave you the first five chapters on how to print "hello world" and then the rest of the book is just an expanded syntax and function reference. I can use the online documentation as a function reference. This book doesn't dumb it down, and just jumps right in to projects.
So basically I am at chapter 1, which is ... well, syntax and conditionals, very basic stuff. So please somebody give me a challenge, say "write an app that does this". I mean, grade level 1 here, please. Go easy on me.
So I am asking for help from you, my friends.
No, not "how do I do this" kind of help... More like, 'Give me an assignment' type of help.
I learn best when I have a project or a goal to accomplish. I am working my way through PHP and MySQL Development by Sams.. I really like the style so far, I was sick of all the other books that gave you the first five chapters on how to print "hello world" and then the rest of the book is just an expanded syntax and function reference. I can use the online documentation as a function reference. This book doesn't dumb it down, and just jumps right in to projects.
So basically I am at chapter 1, which is ... well, syntax and conditionals, very basic stuff. So please somebody give me a challenge, say "write an app that does this". I mean, grade level 1 here, please. Go easy on me.
0
Comments
Smj: Grade 1!!!!
"Write a dissertation explaining your opinion on field-effect theory and how it could revolutionize nanoelectronics"
He had to write it before we let him play gamecube tonight.
A simple project.....
A simple news system for your buddhist site. It's gotta be able to allow someone to login and add news to a text file that is read
[php]
for ($layer=0; $layer < 3; $layer++ )
{
echo "Layer $layer<br />";
for ( $row = 0; $row<3; $row++ )
{
for ( $column =0; $column < 3; $column++)
{
echo '|'.$categories[$layer][$row][$column];
}
echo '|<br />';[/php]
See this line:
[PHP]echo "Layer $layer<br />";[/PHP]
I had it transposed as this:
[PHP]echo "Layer $layer<br />;"[/PHP]
And the ENTIRE SCRIPT BROKE. It produced nothing!
We have all done it
That's really not that different from any other language...if you leave off a semicolon in JAVA/C/C++/etc it won't interpret/compile/whatever. Syntax is always annoying to learn, but once you get the hang of it, it's not that big of a deal.
Thats what I was going to say exactly. Every language and even stuff like
SQL demands precise syntax.
Tex
The first thing I did in PHP was make a (static) MadLib form. You typed in the parts of speech in a form, and it added the words into a pre-made story when you submitted it.
I think I started on that same book and then just started to customize the code. Got some great help from WDF after that. I then started on ZE SECRET PROJECT... which I'm still working on in my spare time lol... don't even ask how long it's been...
(I TOLD YOU NOT TO ASK!!!!)