04-04-2007, 11:47 AM
I am reading "PHP and MySQL For Dynamic Websites" by Larry Ullman. very well written i am about quater the way through and i have a good understanding of how a script works so i can anaylse a script and know what the script is trying to do. But i thats about it, when i come to writing my own code i don't know how i can make the script do what I want it to do. Have any of you good people got any advice for me
04-04-2007, 11:52 AM
Just practice, practice and practice. Look at example scripts/code you've got and modify them is the easiest way to learn I find. eg, a basic hello world code
echo 'Hello World';
can be changed to say the time, date, then add a counter to say how many times the page has been viewed, and slowly work your way up. You'll eventually pick it up and be able to find functions you need to use by google or php.net
04-04-2007, 04:18 PM
when i come to writing my own code i don't know how i can make the script do what I want it to do. Have any of you good people got any advice for me
This comes from reading the book, and not doing the exercises. You have to do the exercises if you want to grasp when and what you would use.
EDIT: On a side note, I think this book is outdated and you should be looking for a PHP5 book, as there are some nice additions that are well worth the upgrade. Not to mention that some things don't work anymore, or different.
04-04-2007, 04:37 PM
Yea get the latest and greatest.
04-05-2007, 09:54 AM
I have the 2nd eddition which is PHP5