Languages posts

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...
read more

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">...
read more

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...
read more

Common Mistakes to Avoid When Coding in PHP

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....
read more

Wrapping Your Head Around Canvas: Part 1

HTML5 is no longer a 'way of the future ' as it is more common place now that most of us, if not all of us, are starting to implement it into the things we create. One of the newest features that have most of you cooing, aside from the new video and audio tags, is Canvas. It has been dubbed a convenient replacement for the use of flash in the browser, and it translates well across multiple devices. The name of the HTML tag sums up the basis of its implementation. Canvas provides a 2D drawing API for images, text,...
read more

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...
read more

20 Best Sites Built with Ruby on Rails

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...
read more

13 JavaScript Frameworks That Can Make You a Better Web Developer

JavaScript earned popularity with web developers because of how responsive it is for users. Since it runs locally in the user's browser, there is no waiting for the server-side computations to run. And what you can do with JavaScript is pretty fascinating when it comes to dynamic page effects and user interactivity. But even something as simple, and lightweight, as JavaScript can be improved upon. That is where the JavaScript frameworks come into play. Using these frameworks allows a developer...
read more
Load more