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.Continue reading →
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.
Continue reading →
This 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.Continue reading →
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.Continue reading →
A function is used in almost every programming language to reduce excessive code and for effective code re-usability. In some programming languages function is called as method. In almost every programming language they’re used to perform particular task on regular basis. This way it saves time of programmer and code also becomes more readable. Continue reading →
PHP 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.Continue reading →
In this tutorial, we’ll see how to display the contents of mysql table in your php webpage. In my previous tutorial of webserver setup, we checked out how to setup xampp or uniform server. Now you can use the phpmyadmin or sql console from these web server to perform database operations with your webpage. Continue reading →
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.Continue reading →
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.
Continue reading →