PHP
  Home arrow PHP arrow Page 5 - Completing a Blogger with PHP
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
PHP

Completing a Blogger with PHP
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 7
    2006-12-05


    Table of Contents:
  • Completing a Blogger with PHP
  • A quick look at the BlogProcessor class
  • Providing the blog processor with database connectivity
  • Implementing client-side data validation on input forms
  • Improving the blogger’s visual appearance

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Completing a Blogger with PHP - Improving the blogger’s visual appearance
    ( Page 5 of 5 )

    By following a similar approach to the one I took when I included a basic client-side validation mechanism, I’ll also provide the blog application with a few CSS rules aimed at improving the corresponding visual presentation. As you’ll imagine, this task can be easily achieved by including the CSS file listed below. Here is the file in question:

    body{

                background: #eee;

                margin: 0;

                padding: 0;

    }

    h1{

                width: 600px;

                padding: 10px;

                margin-left: auto;

                margin-right: auto;

                background: #339;

                font: bold 20px Arial, Helvetica, sans-serif;

                color: #fff;

                border: 1px solid #000;

    }

    h2{

                font: bold 18px  Arial, Helvetica, sans-serif;

                color: #339;

    }

    h3{

                font: bold 16px Arial, Helvetica, sans-serif;

                color: #339;

    }

    textarea{

                width: 300px;

                height: 200px;

                font: normal 12px Arial, Helvetica, sans-serif;

                color: #000;

    }

    .blog{

                width: 600px;

                padding: 10px;

                margin-left: auto;

                margin-right: auto;

                margin-bottom: 5px;

                background: #ccf;

                border: 1px solid #000;

    }

    .blog p{

                font: normal 12px Arial, Helvetica, sans-serif;

                color: #000;

    }

    .dataform{

                width: 600px;

                height: 410px;

                padding: 10px;

                margin-left: auto;

                margin-right: auto;

                margin-bottom: 5px;

                background: #dccae8;

                border: 1px solid #000; 

    }

    .dataform p{

                margin: 5px;

                font: normal 12px Arial, Helvetica, sans-serif;

                color: #339;

    }

    .datafield{

                width: 300px;

                font: normal 12px Arial, Helvetica, sans-serif;

                color: #000;

    }

    .error{

                margin: 0 0 0 5px;

                font: normal 12px Arial, Helvetica, sans-serif;

                color: #f30;

    Finally, the blog application has been completed! In this case, I decided to include the above CSS declarations, but this feature can be easily modified to suit your personal taste.

    Final thoughts

    Sad but true, we’ve come to the end of this series. In this hopefully instructive journey, you learned how to build a highly expansible blogger with PHP 5, which allows you to insert, update and delete entries very easily.

    In this case I purposely used the term “expansible.” You can introduce your own modifications to the application to extend its existing functionality. See you in the next PHP tutorial!



     
     
    >>> More PHP Articles          >>> More By Alejandro Gervasio
     

       

    PHP ARTICLES

    - Implementing Factory Methods in PHP 5
    - Merging a File Split for FTP Upload using PHP
    - Getting Data from Yahoo Site Explorer Inboun...
    - Method Chaining: Adding More Selecting Metho...
    - How to Split a File During an FTP Upload Usi...
    - Expanding a Custom CodeIgniter Library with ...
    - Using the Yahoo Site Explorer Inbound Links ...
    - Building a CodeIgniter Custom Library with M...
    - Building an E-mini Trading System Using PHP ...
    - Completing the MySQL Class with Method Chain...
    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek