Home » Archive

Articles tagged with: PHP

PHP »

[30 Mar 2008 | No Comment | 237 views]

From the code below, you can get IP Address, Page name, Browser name, Operating System name, and Page Referrer name. Note: If you directly run this code, you will not get Referrer name. To view referrer information, you can link the page below from any other page.  

PHP »

[23 Mar 2008 | No Comment | 101 views]

I find timestamp more flexible to use. Using time function which returns current Unix timestamp. We have the flexibility to change the timestamp according to the display requirement for our date and time by using date function.

PHP »

[19 Mar 2008 | 2 Comments | 276 views]

Refreshing page in PHP with “meta http-equiv”. refresh.html

Javascript »

[19 Mar 2008 | 2 Comments | 476 views]

I had problem giving the back link and I found this solution: Go Back This helped me. Hope this will be useful to you as well.

PHP »

[19 Mar 2008 | No Comment | 119 views]

Generating/Displaying random image in PHP.

MySQL, PHP »

[5 Mar 2008 | 11 Comments | 7,081 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,919 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,075 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::