Quantcast
Browsing latest articles
Browse All 24 View Live

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 Article


Login Page with Validations

<?phpsession_start();if(isset($_SESSION["username"]) && $_SESSION["username"] != null){    header("location:index.php");}?><html><head><script...

View Article


PHP:Logout Page

<?phpsession_start();unset($_SESSION["username"]);session_destroy();header("location:login.php");?>

View Article

PHP: 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 Article

Index 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 Article


Creating 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 Article

Simple 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 Article

Dispalying 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 Article


Edit and Update database using PHP

<html><body><?php$conn=mysql_connect("localhost","root","");mysql_select_db("test",$conn) or die('Could not connect: ' ....

View Article


How 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 Article

Variable 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 Article

How 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 Article

PHP 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 Article


PHP: 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 Article

Create 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 Article


Screen 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 Article

How 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 Article


Make 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 Article

How 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 Article

Scrolling 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 Article


Currency 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 Article


How 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 Article

HTML5 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
Browsing latest articles
Browse All 24 View Live