Jobs/Vacancies › 10 Vacant Positions At Trithel International Ltd by geniusng(op): 12:00pm On Apr 22, 2010 |
PROJECT /MAINTENANCE ENGINEER PROJECT MAINTENANCE TECHNICIAN INTERNAL AUDITOR/ACCOUNTS EXECUTIVE SALES EXECUTIVE / ANALYST SALES REPRESENTATIVE (MEDICAL) SALES REPRESENTATIVE (COMMERCIAL) ACCOUNTS ASSISTANT ASSISTANT PRODUCTION SUPERVISOR/ FILLER RECEPTIONIST / FRONT DESK OFFICER SALES CLERK Method of Application: Online Closing Date: 4th May, 2010. CLICK HERE APPLY ONLINE |
Jobs/Vacancies › Banking Jobs For Fresh Graduates by geniusng(op): 10:13am On Apr 19, 2010 |
|
Jobs/Vacancies › New Job Vacancies by geniusng(op): 5:22pm On Apr 18, 2010 |
Are you a Job Seeker? Do you desire a highly paid Job in Nigeria or abroad? If your Answer to this Question is YES! then Click below to apply for your Dream Job Banking Job, Engineering Job, Accounting Job, Oil & Gas Jobs, I.C.T. Jobs, Health Jobs, etc. Click Here |
Nairaland General › Free Php Login Script Tutorial by geniusng(op): 6:20pm On Apr 08, 2010 |
Let me teach you how to create a simple login system with php + mysql script, this tutorial is easy to follow, follow it you step by step. Overview In this tutorial, let us create 3 files1. main_login.php 2. checklogin.php 3. login_success.php Step[/b]1. Create table "members" in database "test". 2. Create file main_login.php. 3. Create file checklogin.php. 4. Create file login_success.php.
[b](1) Create table "members"CREATE TABLE `members` ( `id` int(4) NOT NULL auto_increment, `username` varchar(65) NOT NULL default '', `password` varchar(65) NOT NULL default '', PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=2 ;
-- -- Dumping data for table `members` --
INSERT INTO `members` VALUES (1, 'john', '1234'); (2) Create file main_login.php<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> <tr> <form name="form1" method="post" action="checklogin.php"> <td> <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td colspan="3"><strong>Member Login </strong></td> </tr> <tr> <td width="78">Username</td> <td width="6">:</td> <td width="294"><input name="myusername" type="text" id="myusername"></td> </tr> <tr> <td>Password</td> <td>:</td> <td><input name="mypassword" type="password" id="mypassword"></td> </tr> <tr> <td> </td> <td> </td> <td><input type="submit" name="Submit" value="Login"></td> </tr> </table> </td> </form> </tr> </table> (3) Create file checklogin.php<?php $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="members"; // Table name
// Connect to server and select databse. mysql_connect("$host", "$username", "$password" or die("cannot connect" ; mysql_select_db("$db_name" or die("cannot select DB" ;
// username and password sent from form $myusername=$_POST['myusername']; $mypassword=$_POST['mypassword'];
// To protect MySQL injection $myusername = stripslashes($myusername); $mypassword = stripslashes($mypassword); $myusername = mysql_real_escape_string($myusername); $mypassword = mysql_real_escape_string($mypassword);
$sql="SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'"; $result=mysql_query($sql);
// Mysql_num_row is counting table row $count=mysql_num_rows($result); // If result matched $myusername and $mypassword, table row must be 1 row
if($count==1){ // Register $myusername, $mypassword and redirect to file "login_success.php" session_register("myusername" ; session_register("mypassword" ; header("location:login_success.php" ; } else { echo "Wrong Username or Password"; } ?> (4) Create file login_success.php // Check if session is not registered , redirect back to main page. // Put this code in first line of web page. <? session_start(); if(!session_is_registered(myusername)){ header("location:main_login.php" ; } ?>
<html> <body> Login Successful </body> </html> That's it, if you have any question feel free to call me or mail me info at codedwebmaster dot com |
Nairaland General › Free Php Login Script Tutorial by geniusng(op): 6:16pm On Apr 08, 2010 |
Let me teach you how to create a simple login system with php + mysql script, this tutorial is easy to follow, follow it you step by step. Overview In this tutorial, let us create 3 files1. main_login.php 2. checklogin.php 3. login_success.php Step[/b]1. Create table "members" in database "test". 2. Create file main_login.php. 3. Create file checklogin.php. 4. Create file login_success.php.
[b](1) Create table "members"CREATE TABLE `members` ( `id` int(4) NOT NULL auto_increment, `username` varchar(65) NOT NULL default '', `password` varchar(65) NOT NULL default '', PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=2 ;
-- -- Dumping data for table `members` --
INSERT INTO `members` VALUES (1, 'john', '1234'); (2) Create file main_login.php<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> <tr> <form name="form1" method="post" action="checklogin.php"> <td> <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td colspan="3"><strong>Member Login </strong></td> </tr> <tr> <td width="78">Username</td> <td width="6">:</td> <td width="294"><input name="myusername" type="text" id="myusername"></td> </tr> <tr> <td>Password</td> <td>:</td> <td><input name="mypassword" type="password" id="mypassword"></td> </tr> <tr> <td> </td> <td> </td> <td><input type="submit" name="Submit" value="Login"></td> </tr> </table> </td> </form> </tr> </table> (3) Create file checklogin.php<?php $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="members"; // Table name
// Connect to server and select databse. mysql_connect("$host", "$username", "$password" or die("cannot connect" ; mysql_select_db("$db_name" or die("cannot select DB" ;
// username and password sent from form $myusername=$_POST['myusername']; $mypassword=$_POST['mypassword'];
// To protect MySQL injection $myusername = stripslashes($myusername); $mypassword = stripslashes($mypassword); $myusername = mysql_real_escape_string($myusername); $mypassword = mysql_real_escape_string($mypassword);
$sql="SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'"; $result=mysql_query($sql);
// Mysql_num_row is counting table row $count=mysql_num_rows($result); // If result matched $myusername and $mypassword, table row must be 1 row
if($count==1){ // Register $myusername, $mypassword and redirect to file "login_success.php" session_register("myusername" ; session_register("mypassword" ; header("location:login_success.php" ; } else { echo "Wrong Username or Password"; } ?> (4) Create file login_success.php // Check if session is not registered , redirect back to main page. // Put this code in first line of web page. <? session_start(); if(!session_is_registered(myusername)){ header("location:main_login.php" ; } ?>
<html> <body> Login Successful </body> </html> That's it, if you have any question feel free to call me or mail me info at codedwebmaster dot com |
Jobs/Vacancies › Nigerian Bottling Company Employing : Electrical Engineer by geniusng(op): 3:15pm On Apr 07, 2010 |
|
Jobs/Vacancies › Nigerian Bottling Company Employing : Electrical Engineer by geniusng(op): 3:10pm On Apr 07, 2010 |
|
|
Jobs/Vacancies › Adexen Is Recruiting A Project Hse Advisor by geniusng(op): 10:53am On Apr 02, 2010 |
Adexen Nigeria: Project HSE Advisor Posted on April 1st, 2010 in HSE Jobs in Nigeria, Oil & Gas Jobs Nigeria Adexen is recruiting a Project HSE Advisor for one of its clients - a leading industrial corporation focused on Oil & Gas construction and major marine services. Follow this topic: www.codedwebmaster.com/forum/index.php?topic=141.0 |
Jobs/Vacancies › Vacancies For Engineers/lawyers/marketers by geniusng(op): 6:54pm On Mar 30, 2010 |
|
Jobs/Vacancies › Job Vacancies In A Leading Global Brand Of High Quality Electronic Company by geniusng(op): 5:58pm On Mar 24, 2010 |
|
Webmasters › Urgent It Vacancy by geniusng(op): 1:32pm On Mar 23, 2010 |
|
Webmasters › Creative Web Developer/programmer Wanted At Fastecash by geniusng(op): 1:30pm On Mar 23, 2010 |
|
Jobs/Vacancies › Google Jobs In Europe, Middle East And by geniusng(op): 11:08am On Mar 19, 2010 |
|
Jobs/Vacancies › Vacancy In Glaxosmithkline by geniusng(op): 3:24pm On Mar 18, 2010 |
|
Webmasters › Re: Need A Php Form Maker Software (novice) by geniusng(m): 1:00pm On Mar 13, 2010 |
Get this E-book it will also help you.
Build Database Driven Website Using PHP & MySQL
To download go www.codedwebmaster.com
Register and Login with you Username and Password & Download Free
Stanislaus |
Webmasters › Website Forum Review by geniusng(op): 10:26am On Mar 12, 2010 |
Hi My Fellow Webmasters,Please help me to review this FORUM. www.codedwebmaster.com/forumWhat do you think about the colour combination? I will appreciate it if you can criticize constructively. Thanks and remain blessed. Webmaster www.codedwebmaster.com |
Webmasters › Come And Learn Web Site Design Free Of Charge by geniusng(op): 11:31am On Mar 05, 2010 |
You still have the OPPORTUNITY to learn Web Site Design without paying a dime.
All you have to do is to to register and login with username
At www.codedwebmaster.com/register.php
Become Coded Webmaster Fan www.codedwebmaster.com/fans_club.php Thank you. Bro. Stanley 08033398769 |
Computers › Hello My Fellow Webmasters by geniusng(op): 8:00pm On Feb 28, 2010 |
Can we meet and discuss what concern us Nigeria Web Designers: Both New and Old - Everybody is welcome. Let us meet at www.naijawebmasters.net Feel free to tell me what you need. Email me: info@codedwebmaster.com or info@naijawebmasters.net I am looking forward to meet you in that community Thank you. Stanley codedwebmaster.com |
Webmasters › Get Your Web Site Designed And Hosted Now Then Pay Later by geniusng(op): 11:06pm On Jan 31, 2010 |
Hello, I am Bro. Stanley, the webmaster of www.codedwebmaster.com I am here to help you to get your own Web Site Registered, Designed and Hosted. Then you can pay later. Domain name Registration = N1, 600 only Don't waste time, Email me Now: info@codedwebmaster.com Free Web Site Design Training is going on. Register Now at www.codedwebmaster.com and start your training. |
|
|
|
|
Webmasters › Re: Need A Web Site Moderator by geniusng(m): 2:17pm On Dec 29, 2009 |
I am interested and I am sure i can do it better. This is the latest website I registered and designed www.ifeanyieze.com, www.cidiproperties.com.My contact: stanley@stanleyandgloria.com, calvarylove2002@yahoo.com More about me and what I can do see my attached Resume. Phone: 08033398769 |
Web Market › Complete Website 4 N10, 000 Only by geniusng(op): 6:36pm On Feb 23, 2009 |
Complete website for your business for just N10k. For the sample of my past jobs go to www.thegeniusng.com/webdesignYou can download our proposal when you get there. We also train you to be the best webmaster. Stanley www.thegeniusng.com08033398769 |