Languages posts

PHP

PHP User Survey Part V: Administration Layer

In the last piece on our PHP online user poll, we look at the administrative service and how the site supervisor enters, deletes and manages the poll data. The first poll administrative page checks if the administrator is logged in. You can choose from Session variables or Cookies to check the site administrator login status. Once the application has confirmed the identity of the site administrator, the page lists the available polls. The first step is to use the class methods and variables in the class.polls.php...
PHP

PHP User Survey Part IV: Presentation Layer

So far in this series, we have developed the data layer (database tables) and the business layer (PHP methods) for manipulating the data. In this piece, we will look at the presentation layer that is used to display the poll question and poll results. The HTML header will check for the presence of a cookie (in case the user has voted previously) and refresh the page if it has timed out. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">...

Create Your Own CRUD App with MySQL and PHP

You’re may be wondering what exactly CRUD is. CRUD simply stands for Create, Read, Update and Delete and it is the one of the fundamental principles of programming logic that can be expanded and applied to larger projects. For example, let’s imagine we’re creating a social network and we like to have the ability for users to create accounts, edit and update information for those accounts and also delete said accounts; that is CRUD at work. Now let’s get started using PHP & MySQL, to...
PHP

Common Mistakes to Avoid When Coding in PHP

By
Despite the high expectations placed on them at times, developers are human. They were the last time we checked anyways. As humans, we are bound to make mistakes from time to time. And simple, common mistakes often slip past our filters the more comfortable we become with something. Think about it, when you first started writing code you most likely checked every line to make sure things were perfect. As you grow more comfortable with the process, little things often get overlooked and mistakes are made....
PHP

Integrating AJAX with PHP Part I

AJAX earned its share of stardom once industry giants like Google Maps, Zoho Writer and Y!Mail Beta started to actively implement AJAX into their services. Though many webmasters out there are already using AJAX yet there is that section which is still unaware of its advantages. This tutorial will help the latter part enjoy hands-on experience with AJAX and PHP. I won’t be using jargons yet I am assuming that you understand the basics of HTML, PHP and JavaScript. What is AJAX? ... Well, AJAX won’t...

20 Best Sites Built with Ruby on Rails

By
Ruby on Rails became a popular web application framework because of how easy it promotes the rapid prototyping methodology used by web developers in rapid development. Of course, being an open source project also helped Ruby on Rails establish itself as one of the most popular web development tools as well. New developers often get caught up working with PHP over Ruby on Rails because so many applications are built using the PHP language like WordPress, Joomla, Wikipedia and others. Because of its...

jQuery Instead of JavaScript

jQuery has quickly become one of the most popular JavaScript libraries out there today. One of the main reasons is because of how efficient it is because when using it, developers are able to write less code. jQuery is also great tool for creating animations and effects for your websites, UI's etc. It gives us the ability to add many of the things we want out of JavaScript without bloated code. Let's look at the anatomy of a basic jQuery statement.           First thing we see is a...
Load more
Home CSS Deals DesignBombs HTML HTML5 JavaScript jQuery Miscellaneous Mobile MySQL News PHP Resources Security Snippet Tools Tutorial Web Development Web Services WordPress