Posts

Showing posts from December, 2014

Pagination in PHP

Image
 Pagination in PHP Pagination in PHP Here suppose you have  large data in table and when you fetch those data it will look like (Without Pagination) In PHP it is possible to use pagination.                                                      (With Pagination) Here With pagination it will look like above picture.  Let's Start the Program of Pagination in PHP <?php        $con=mysql_connect("localhost","root","");        mysql_select_db("test");  //Database name        $nor=5;   //Number of record which we want to display at one time        if(isset($_GET['id']))        {                ...

Calculator in PHP.....

Image
Learn how to create a calculator in PHP: Open your favorite text editor and copy the following code. <?php error_reporting(E_ALL ^ E_NOTICE); $ans=0;  $val1=$_GET['val1'];  $val2=$_GET['val2'];   $opt=$_GET['opt'];  $ans=$_GET['ans']; if(isset($_GET['submit'])) {     Switch($_GET['submit'])     {         case "+":             $opt="+";             break;         case "-":             $opt="-";             break;            case "*":             $opt="*";             break;            case "/":    ...