Home » Archive

Articles in the PHP Category

MySQL, PHP »

[5 Mar 2008 | 11 Comments | 7,078 views]

Before I had posted an article to add, edit, delete, and display contents. I had also included sessions there. There was the facility to login and register users too. But i got feedback that it was a bit complex for novice users of PHP (users who have just started PHPing). It was a kind of [...]

PHP »

[5 Mar 2008 | 2 Comments | 745 views]

Explaining/Illustrating different ways to generate random numbers and strings in PHP

PHP, Regular Expression »

[2 Mar 2008 | 7 Comments | 1,376 views]

In this article, you will find php validation code for: 1) Interger Validation 2) String Validation 3) Decimal Validation (two digits after decimal)

HTML, PHP »

[9 Dec 2007 | One Comment | 1,916 views]

Problem: I want to create a dynamic table with a row starting after certain number of columns, i.e. like, i want to create an html table which automatically generate new row after 3 columns in a row. Solution:

MySQL, PHP »

[9 Dec 2007 | No Comment | 149 views]

Problem: Concatenate and fetch data from two fields of database and then break it again. Solution:

PHP »

[9 Dec 2007 | No Comment | 983 views]

Below is the code with sufficient comments on making a tree navigation menu in PHP. A single page holding different links. :-D Download link below:

MySQL, PHP »

[8 Dec 2007 | 7 Comments | 8,071 views]

Hello everyone! here is a simple and complete tutorial to add, edit, delete, login, and register in PHP with MySQL database. The description is present in the code.. in comments :D I hope those comments are sufficient to describe the code. The database part is in the sql file named ‘database.sql’.

PHP »

[7 Dec 2007 | 2 Comments | 798 views]

Here is the php code for file upload (image upload in this case) with description included within the code: There are two files. ‘fileupload.html’ contains the form to upload file and ‘upload.php’ contains the php code.

PHP »

[19 Aug 2007 | One Comment | 153 views]

< ?php /* creating a class with two variables and a function */ class abc { var $name = "Ram"; var $surname = "Sharma"; function greet() { echo “Welcome! $this->name $this->surname”; } } class xyz extends abc { var $middlename = “Kumar”;

MySQL, PHP »

[15 May 2007 | One Comment | 615 views]

At first create database named ‘test’ in mysql. Use ‘test’. Then create table ‘project’. MySQL queries for the above tasks :: Now the php code::