PHP

Wings Cafe ordering system

Submitted by Shakhane on
This is wings café ordering system coded in php and MySQL. it is my 3rd semester project at Limkokwing University Of Creative Technology Lesotho. I just hope u will like the code and customize it to suits your projects. Requirements to run this project succefully: Any php support server MySQL for running database. Just import wings.sql (it is in the database folder) in your phpmyadmin. Thanks. If

Calculate distance between 2 IP address

Submitted by chrislim2888 on
This sample code demonstrates you on how to calculate the distance (in km, miles and nautical miles) for 2 IP addresses. In general, this sample code will retrieve the latitude and longitude from the given IP addresses and perform the distance math calculation. Note: This sample requires the IP2Location BIN database which you can download free at http://lite.ip2location.com

PHP Forms

Submitted by joken on
Using the HTML Form is very important in creating a PHP application, because it serves as a holder of information from a website's visitors and then use the PHP to process that information.

Heres the simple HTML Form.

The code below is a simple HTML Form with a two input boxes for Fullname, E-mail Address and a submit button. When the user click the submit button, the data in the form will be sent to the HTTP POST method to be processed in a PHP file called “processData.php”.

Calculate Sunrise and Sunset Value from IP Address

Submitted by chrislim2888 on
The example demonstrate you on how to calculate the sunrise and sunset value from IP address, or to be specific - the geolocation from IP address, without the use of weather library. This solution requires a geolocation table, such as the DB11.LITE database which can be downloaded free from lite.ip2location.com. I would like to keep the source code zip small, so, please download it from http:/

PHP include

Submitted by joken on
In PHP, it is necessary to use PHP include command. Because include takes a file name and simply inserts that file content into the script that issued the include command. Including files saves a lot of work, it means that you can create a standard header, footer and menu file that is available to all web pages.

PHP Comments

Submitted by joken on
One of the best programming practice is using a Comment. A comment is a string code or text within PHP or any programming languages that is not visible during the execution in your web browser. And it provides the feedback to the developers or it temporarily disable the code and the most important thing is that comment serves to give some information about the code. In PHP, there are two types of Comment.

Online Farmers Contracting System

Submitted by kipruzac on
This Project is developed by cherwon kipruto zacharia for Kenya seed company limited . The major aim is to reduce conjestion on farmers who are companies outgrowers. For more information , contact [email protected] or you can add zacharia kipruto cherwon on facebook or follow @kipruzac on twitter or contact me by mobile +254716654532

Getting The Difference of Two Dates Using PHP

Submitted by argie on
This tutorial will teach you on how to get the difference of the two dates using PHP datetime function. You will also learn in this tutorial on how to use tigra calendar in making popup date. To understand more fallow the step bellow.

Creating Our Form and Connecting Tigra Javascript

The code bellow will give us the form that allow us to pick two date to be subtracted. The selection of date is powered by tigra popup calendar.

PHP Echo

Submitted by joken on
The echo command in PHP is used to output the text in the web browser. And echo is not a function, but it is a language construct. Meaning you don’t need to use a parenthesis with it. Outputting a string In outputting a string in PHP, we use echo. We place a string variable or we can use quotes, like what we are going to do in this example. The code below we output a “Hello everyone!”.