Accessing Database tables using AJAX

data

In this article, we will access information from MySQL database tables using AJAX. Assuming we have a table named products containing information of products of different categories. The categories may be Mobile, Camera, Book etc. and are displayed on the screen in the form of hyperlinks. On selecting a category, all the products under that category will be displayed. Like, if Camera hyperlink is selected, all the cameras in products table will be displayed. The structure of the table is shown in below given figure. (more…)

Read More

How to Use HTML Forms With PHP

34

Some HTML forms pass data from one page to another without the use of database. You can use php to enhance your HTML forms by making sure that these forms are processed properly. For example if you want some condition to be fulfilled before processing the form then it is possible to do so with php. In this tutorial we’re going to process out data from one form to another static page by using php.
(more…)

Read More

PHP Solution to the Project Euler Problem 1

preuThis is one of the easiest problem in the project euler archive. You can perform this problem in any language of your choice. As this site is specifically for web developers so i’m focusing on php for this post. You can change the code to get answer in C, C++ or any other language of your choice. Depending on your language, few changes will be there but that’s upto you to fix. As this tutorial deals with the PHP code, I can tell you for sure that this code works. (more…)

Read More

PHP Regular Expressions

edr

Regular expressions are the patterns that allow you to process text based on certain requirement. This in turn produces the sequence or pattern of text that is based on pattern-matching as per developers needs. You can do a lot of things using regular expressions. For example, you can filter our the text in uppercase or replace the word with something else, match the group of text and filter the content. There are plenty of other ways to use the regular expression as per your needs. (more…)

Read More

PHP Exception Handling

htyPHP like any other programming language has an exception handling feature. You can write your code in a such way that it catches the most obvious exception depending on your programs logic. Exceptions allow you to manage errors much effectively and this is the reason you should consider using them in your program. In this tutorial we’ll take a look at how exceptions in PHP work. (more…)

Read More

How to Setup Codeigniter on Xampp and Uniform Server

dfr

Learn How to Setup Codeigniter with Xampp and Uniform Server. Codeigniter is one of the popular PHP framework that is suitable for many new php programmers. Codeigniter is lightweight and is relatively easy to understand php framework compared to cakephp and other frameworks. In this tutorial, we will setup codeigniter and get things running with XAMPP and Uniform server. I am explaining codeigniter setup using both of these web servers just so that if anyone wants to use one of these will find it easy to setup. (more…)

Read More

How To Create An External Style Sheet

kit-html-css

Cascaded style sheets are the means by which web developers model the web page. They can be placed within page or added via external link. There are pros and cons of using internal and external style-sheets. Depending on your needs for web page development, it is upto you how to use external css in html and to choose a way to add style-sheet on your web page.
(more…)

Read More