Category Archives

Archive of posts published in the category: PHP
Jan
19

Pagination using php…..

Pagination is essentially the process of taking a set of results and spreading them out over pages to make them easier to view. Its always possible that your SQL SELECT statement query may result into thousand of records. But its is not good…

Jan
16

while loop in php…

While loop will exicute a block of code if and as well as condition is true.if condition is false then it will goes to next condition. while statement : while(expr) statement the meaning of a while statement is, it tells php to exicute…

Jan
16

Hide & show using jquery………

we can use this accessing class and id of which we want to show or hide. Show a perticuler thing we use show(). Hide a value we use hide(). we use these inside script tag.

Jan
16

for loop in php….

for loop through a block of code a specified number of time. for loop syntax : fro(initialization;condition;increment) { here code which you want to exicute; } in that syntax initialization is used to set the start value of counter of thee number of…

Jan
13

foreach loop in php…

foreach looop is used to loop through arrays.for each pass value of the current array element is assigned to value and the array pointer is moved by one o and in pass next element will be processed. Syntax: foreach(array as value) { here…

Jan
11

Removing cookies in php………..

We caon delete a cookies by calling same stecookie() function with the cookie name and any value. however this time you need the set the expiration date in the past. example : Note : Whene deleting a cookies,that deleting does not actually take…

Jan
11

HOW TO DESTROY A SESSION IN PHP……..

Deatroys all data registered to a session. To kill a session we used session_destroy and session_unset(). But both are having diffrent meaning. 1. session_destroy is more effrctive than session_unset. session_destroy destroy session. session_destroy() is use to kill the session. 2. session_unset only clear…

Jan
11

SESSION IN PHP……

A session is a way to store information tp be used across multiple pages. Session is not stored on the users computers. We open a application or web and we make some changes on that and close it.This all things we did in…

Jan
7

Show serial number continuously in PHP, Mysql pagination

Show continuously serial number when using pagination in PHP

Jan
6

Cookies in php

A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user’s computer. Each time the same computer requests a page with a browser, it will send the cookie too. With PHP, you…

Dec
31

How to upload a file using php..

1. First of all you will have to create HTML form for uploading any file through PHP

2. Create a folder in which you want to store uploaded files…

Dec
23

How do i increase the PHP upload limits

You find some problem to send email with attachments and uploading a big file with php scripts. These problem comes because php upload limit set in php.ini file. Thia is not a big problem you can fixed it in just a few minuts.so……

Dec
19

How to define variable in PHP

Some basic points for VARIABLE….

In php variables are casesensitive.
dollor($) sign represents that this is a variable.
So we can use it in our php code.

Sep
24

How to refresh page after few second in php

<?php header(“Refresh: 10;url=”.BASE_URL); ?>