PHP:Registration Page With Validations
config.php page<?php$conn=mysql_connect("localhost","root","");mysql_select_db("sampleproject",$conn) or die('Could not connect: ' . mysql_error());?> <html><head><script...
View ArticleLogin Page with Validations
<?phpsession_start();if(isset($_SESSION["username"]) && $_SESSION["username"] != null){ header("location:index.php");}?><html><head><script...
View ArticlePHP:Logout Page
<?phpsession_start();unset($_SESSION["username"]);session_destroy();header("location:login.php");?>
View ArticlePHP: Forgot Password
<html><body><form action="forgotpassword.php" method="post">E-mail: <input type="text" name="email" size="24"><br><input type="submit" name="submit"...
View ArticleIndex Page with upload option and directory images displaying
<?phpsession_start();if(!isset($_SESSION["username"])){ header("location:login.php");}?><html><body><a href="logout.php">logout</a><h1>WELCOME</h1><form...
View ArticleCreating mysql Database
<?php$connect = mysql_connect("localhost", "root", "") ordie("Could not establish connection");$create = mysql_query("CREATE DATABASE IF NOT EXISTS users") or die...
View ArticleSimple Registration Page values inserting into database PHP
<html><body><form method="post" action="form.php"><table width="100%" border="0"> <tr> <td>Username</td> <td><input type="text"...
View ArticleDispalying Elements From Database using PHP
<html><body><?php$conn=mysql_connect("localhost","root","");mysql_select_db("test",$conn) or die('Could not connect: ' . mysql_error());$query="SELECT * FROM...
View ArticleEdit and Update database using PHP
<html><body><?php$conn=mysql_connect("localhost","root","");mysql_select_db("test",$conn) or die('Could not connect: ' ....
View ArticleHow to make array Clean looking PHP
Making an ugly looking array to nice looking. Array is looking like this:$array = Array ( [book] => Array ( [0] => Array ( [name] => Java [author] => Rao [@attributes] => Array ( [x]...
View ArticleVariable Replacement PHP
By using this class we can replace the variables with the actual variables which you were getting dynamically.First function is to get the path of the our template file.Second function is to load the...
View ArticleHow to remove stylesheet dynamically and append new stylesheet dynamically
If you want to remove loaded style that means at the time page loading we added stylesheet.But after loading that when click on some thing if you want to remove the loaded styles and you want to add...
View ArticlePHP How to remove extra character from end of string
Suppose If you have a string like this:$string = "How are you ?,";You want to remove comma (,) from end of the string, that means you want to get the string like this$string = "How are you ?";So just...
View ArticlePHP: Convert XML to an array
If you have XML file which you want to convert to an array to get the attributes of an array so this function will helpful for doing this.XML file:<books x='600' y='400'> <book x='200'...
View ArticleCreate new pages dynamically using PHP
Suppose if you have a users data in your database and you stored in array variable $users.For each user you want create a html page so you can do like this<?php// Creating a html page with user...
View ArticleScreen Resolution Alert for Web Developers
Boston, USA and Dublin, Ireland, Wednesday, 11th April, 2012: A major milestone in screen resolution sizes has been passed according to independent web analytics company, StatCounter. The company's...
View ArticleHow to remove first element of an array PHP
If you have an array like this :$fruits = ( "custard apple", "orange", "banana", "apple", "strawberry", "blueberry" );You want to remove first element of an array that means you want array like...
View ArticleMake text unselectable on an html page
unselectable, CSS, disble text select, restrict text selection, disable selecting text, javascript diabling text select, css siabling text selectFor disabling the text copy paste optionAdd these lines...
View Article$ is not a function jQuery Wordpress
If you are trying to add your own jQuery code to WordPressand seeing an error “$ is not a function” in Firebug,If you code is looking like this:$(document).ready(function(){ $("#list").dataTable({...
View ArticleHow to backup/upload blogger template
Looking for backup/upload blogger template for your blog it is simple.Step1 : Go to template option.Step2 : At the top right i.e., below to your profile picyou have an button called Backup / Restore...
View ArticleScrolling top blogger
Looking for scrolling top option for blogger it is simpleBefore proceeding to steps go to your template click on backup/Restore option then click on download full template option. For more information...
View ArticleCurrency Converter Using Google Finance
Currency Converter Using Google Finance, Currency Converter Using PHP, Currency Converter code PHP/** * @abstract To covert the currency from one country to another * @param $currencyFrom * @param...
View ArticleHow to call external URL and print response
Sending the data of one page to another, Sending the data of one page to another and printing response, Call external URL and print response, How to send the data to another URL and print the response...
View ArticleHTML5 Canvas Image Rotation
As I have done some research on HTML5 canvas with image rotation.Found that we can rotate the canvas to left, right and mirror the image in just few lines of code.<!DOCTYPE...
View Article