Category: Programming

essential and important JavaScript functions required in website 0

essential and important JavaScript functions required in website

These are the following important java script functions used in a website. Please note that you may use jquery for all functions Progressive pop ups for Social networking <script> // create social networking pop-ups...

important MYSQL syntaxes or query in php program 0

important MYSQL syntaxes or query in php program

SQL QUERY SQL stands  for Structured Query Language, it is used for accessing and manipulating  databases. Using SQL one can perform more actions in a database.Such as insert, update, select and delete a records from the database....

What is session in php, how to start and stop session 0

What is session in php, how to start and stop session

Session in PHP Session is a way to store the user information(in variables) to be used across multiple pages. For example, When we work with an application, we may open it, do some modification and...

PHP script to find Highest, lowest, count and average numbers in array 0

PHP script to find Highest, lowest, count and average numbers in array

To find a highest, lowest, count and average numbers in an array Here, we find the sample php programs to find the find he highest number in an array, similarly lowest number in an...

PHP script to get the user or client IP address 0

PHP script to get the user or client IP address

To get the client IP address <?php $strCurrentTime = date(“y-m-d h:i:s”,time()); $strIP = $_SERVER[‘REMOTE_ADDR’]; echo $strIP; ?> output 127.0.0.1 Note: IP address is dynamic so output may differ.

PHP script for sample contact page for website 0

PHP script for sample contact page for website

Contact page for website <?php include(‘config.inc.php’); class ContactUs { var $arrErrors = array(); var $strSuccess = ”; public $strSelect=null; public $objResult=null; var $objConfig = null; var $objDbConn=null; var $intRandSiteLimit = 35; var $arrRandSites =...

How to create user login, forgot password and logout page using php script 0

How to create user login, forgot password and logout page using php script

To create a login page in php Note: Create a table tbl_login with uname and pwd //config.inc.php <?php class Config { public $dbHostname = ‘localhost’; public $dbUsername = ‘root’; public $dbPassword = ‘xxx’; public $dbName...

Simple PHP script for practice to learners and students 0

Simple PHP script for practice to learners and students

To print a string using php <?php echo “Welcome to learn PHP”; print “Enjoy it”; ?> output Welcome to learn PHP Enjoy it Note: Using echo and print, you can display the string in php...