If you're only reading output from a database then "SELECT * FROM table" or "SELECT quote FROM table WHERE author = '$author'" should work. Then trap it in the mysql_fetch_array or whichever mysql_fetch function looks more suitable to your needs, and echo that out in a loop.
Though I hear amazing things about this book and am buying it myself. I have to ask is the OP completely new to PHP to the point that maybe they should start something that goes over the basics first?
Quick quote from an amazon review. " In terms of content, this is an excellent book. It is probably a little too heavy for absolute PHP beginners, unless you're already well-versed in other modern programming languages. For people who only know PHP, or who don't know any languages and are looking to start with PHP, you should make sure you have a strong grasp of procedural PHP before heading this way. "
The lynda.com videos with Kevin Skoglund are very good for total beginners. A subscript for lynda is about 20 dollars per month... that's not to say you can't find those videos elsewhere...
http://www.tizag.com/phpT/index.php - might be just what you're looking for. Seems beginner enough, explaining things like variables and echo and onwards toward more advanced concepts like files.
Also, having some understanding of html is necessary.
Try to write a basic html form that sends over $_POST variables to a .php page and displays them in alphabetical order.
Then set them inside of a mysql database.
Check out r/dailyprogrammer They have tasks that can be done with most languages, some for total beginners to experiment around with.
Books will put you on the right path to doing things correctly, instead of hacking together what works.
Mythical Man Month is constantly advocated as a book for programmers to read....
*nix + ableon, photoshop, + whatever software isn't supported by linux.
Find an api and try to make it work....
Version control (SVN,GIT).....
check out sequel pro
Then you can ssh into your VM :)
Then no worries.
If you're only reading output from a database then "SELECT * FROM table" or "SELECT quote FROM table WHERE author = '$author'" should work. Then trap it in the mysql_fetch_array or whichever mysql_fetch function looks more suitable to your needs, and echo that out in a loop.
http://www.php.net/manual/en/function.mysql-query.php
http://www.php.net/manual/en/function.mysql-fetch-array.php
http://tuxradar.com/practicalphp/9/4/0
If you have user input beware of sql injection!
Though I hear amazing things about this book and am buying it myself. I have to ask is the OP completely new to PHP to the point that maybe they should start something that goes over the basics first?
Quick quote from an amazon review. " In terms of content, this is an excellent book. It is probably a little too heavy for absolute PHP beginners, unless you're already well-versed in other modern programming languages. For people who only know PHP, or who don't know any languages and are looking to start with PHP, you should make sure you have a strong grasp of procedural PHP before heading this way. "
http://mashable.com/2010/02/10/free-wordpress-blog-themes/
A few of those might do what you want.
http://devzone.zend.com/article/627 looks like it's really good.
The lynda.com videos with Kevin Skoglund are very good for total beginners. A subscript for lynda is about 20 dollars per month... that's not to say you can't find those videos elsewhere...
http://www.tizag.com/phpT/index.php - might be just what you're looking for. Seems beginner enough, explaining things like variables and echo and onwards toward more advanced concepts like files.
Also, having some understanding of html is necessary.
End of this list.
Back to top