Guru01's Posts
Nairaland Forum › Guru01's Profile › Guru01's Posts
1 2 3 4 5 6 7 8 ... 41 42 43 44 45 46 47 (of 47 pages)
call me 08024496403 |
I can handle the job, contact me @ affiliate.9ja@gmail.com for further details. |
you are right, i have also noticed that i like doing so many thing without finishing one, and that has affected my programming life, i dont master one language b4 i will move to another. Like early this year, i took a course on php after i finish, i neva gone thru it again until nw, i also did html and css, and nw am into graphic with photoshop and the rest. Do you think i should start afresh from logic according to the wiki article u paste, or i should continue from where i stop, but add more discipline? I dont mind starting over. |
Thx, i will do as you said. |
Hello house, whenever i determine to achieve something special in my career, at first i will focus on it but later on i will lose focus. Please house this thing has affected me in most area of my life and i dont know what to do. How can i solve this problem, to enable me achieve my goals for next year? Regards. |
Hello house, whenever i determine to achieve something special in my career, at first i will focus on it but later on i will lose focus. Please house this thing has affected me in most area of my life and i dont know what to do. How can i solve this problem, to enable me achieve my goals for next year? Regards. |
Hello house, whenever i determine to achieve something special in my career, at first i will focus on it but later on i will lose focus. Please house this thing has affected me in most area of my life and i dont know what to do. How can i solve this problem, to enable me achieve my goals for next year? Regards. |
Hello house, I need a way to open paypal account here in Nigeria and verify it legally so as to withdraw it easily. I formerly open a paypal account and has funded my account with 150 usd, but now the account is being limited, i cant withdraw from it unless i provide a valid us address. If i can get someone to help me withdrawing this fund, we share the money. But i still want to open new account. |
Hello house, My site is not showing adsense when browse with opera 4.2, pls what can i do to solve this problem. |
i have not gotten any impression yet !! |
Beaf is rite. |
Sir pls i need ebooks on how to create login and out script. How to create cms and mysql. My email is affiliate.9ja@gmail.com |
Bros i like this ur teaching, but make us understand wel. U no say we be noob, teach us like pikin. God bless u. |
Helo house, Where can i buy a cub or scooter motorcycle in lagos. Thanks. |
For those who want copies of the manual, I will send them out on Saturday morning.@stagger This is my email id, affiliate.9ja@gmail.com Please i need the manual. What is the minimum capital for a retailer, Thanks. |
Seems the Nland don't allow such script. Check this out for loginpage.php <?php $usern=""; $passwd=""; $errormessage =""; //=========================================== //ESCAPING DANGEROUS SQL ATTACK, //=========================================== function quote($value, $handle){ if (get_magic_quotes_gpc()){ $value=stripslashes($value); } if (!is_numeric($value)){ $value="'". mysql_real_escape_string($value, $handle). "'"; } return $value; } if ($_SERVER['REQUEST_METHOD'] =='POST'){ $usern=$_POST['username']; $passwd= $_POST['password']; $usern= htmlspecialchars($usern); $passwd=htmlspecialchars($passwd); //============================================= //CONNECTING TO THE LOCAL DATABASE, //============================================= $user_name="root"; $password=""; $database="mylogin"; $server="localhost"; $db_handle= mysql_connect($server, $user_name, $password); $db_found= mysql_select_db($database, $db_handle); if ($db_found){ $usern =quote($usern, $db_handle); $passwd= quote($passwd, $db_handle); $SQL= "SELECT * FROM log WHERE username=$usern AND password=md5($passwd)"; $result =mysql_query($SQL); $num_rows= mysql_num_rows($result); //================================================ //CHECK TO SEE IF $result VARIABLE IS True //================================================ if (isset($_POST['submit'])==$result){ if($num_rows >0){ session_start(); $_SESSION['login']= "1"; header("location: welcome.php" ;} else{ session_start(); $_SESSION['login']=""; header ("location: signup_page.php" ;} } else{ $errormessage= "Error logging in, please signup here!!"; $errormessage= "<a href=signup_page.php>Click Here</a>"; } mysql_close($db_handle); } else{ $errormessage=" Invalid login details"; } } ?> <html> <head><tittle><font color=blue size=15>BASIC TEST LOGIN PAGE</font></TITTLE> </head> <body> <form name="login" method="POST" action="loginpage.php"> USERNAME<input type="text" value="" name="username" maxlength=20> PASSWORD<input type=text value="" name="password" maxlength=18><br> <input type=submit value="Login" name=submit ></form> <p> <?php echo $errormessage; ?> </body> This is for signup_page <?php $usern=""; $passwd=""; $errormessage=""; $num_rows= 0; //session_start(); //if (!(isset($_SESSION['login']) && $_SESSION['login'] != '')) { //header ("Location: login.php" ;//} //set the session variable to 1, if the user signs up. That way, they can use the site straight away //do you want to send the user a confirmation email? //does the user need to validate an email address, before they can use the site? //do you want to display a message for the user that a particular username is already taken? //test to see if the u and p are long enough //you might also want to test if the users is already logged in. That way, they can't sign up repeatedly without closing down the browser //other login methods - set a cookie, and read that back for every page //collect other information: date and time of login, ip address, etc //don't store passwords without encrypting them function quote($value, $handle){ if(get_magic_quotes_gpc()){ $value= stripslashes($value); } if(!is_numeric($value)){ $value ="'". mysql_real_escape_string($value, $handle). "'"; } return $value; } if ($_SERVER['REQUEST_METHOD'] =='POST'){ //================================================================= // GET THE CHOSEN U AND P, AND CHECK IT FOR DANGEROUS CHARCTERS //=============================================================== $usern= $_POST['username']; $passwd=$_POST['password']; $usern= htmlspecialchars($usern); $passwd=htmlspecialchars($passwd); //================================================================= // CHECK TO SEE IF U AND P ARE OF THE CORRECT LENGTH //A MALICIOUS USER MIGHT TRY TO PASS A STRING THAT IS TOO LONG // if no errors occur, then $errorMessage will be blank //================================================================= $ulength= strlen($usern); $plength= strlen($passwd); if($ulength >=10 && $ulength<=20){ $errormessage=""; } else{ $errormessage =$errormessage. "Username must be 10 to 20 characters"; } if ($plength >=8 && $plength <=16){ $errormessage=""; } else{ $errormessage =$errormessage. "Password must be 8-16 characters"; } //test to see if $errorMessage is blank //if it is, then we can go ahead with the rest of the code //if it's not, we can display the error //==================================================================== // Write to the database //==================================================================== if ($errormessage== "" {$user_name="root"; $password=""; $server= "localhost"; $database= "mylogin"; $db_handle= mysql_connect($server, $user_name, $password); $db_found= mysql_select_db($database, $db_handle); if($db_found){ $usern =quote($usern, $db_handle); $passwd=quote($passwd, $db_handle); //======================================================== // CHECK THAT THE USERNAME IS NOT TAKEN //======================================================== $SQL ="SELECT * FROM log WHERE username=$usern"; $result= mysql_query($SQL); $num_rows=mysql_num_rows($result); if($num_rows >0){ $errormessage= "Username already taken"; } else{ $SQL= "INSERT INTO log (username, password) VALUES($usern, md5($passwd))"; $result =mysql_query($SQL); mysql_close($db_handle); //================================================================================= // START THE SESSION AND PUT SOMETHING INTO THE //SESSION VARIABLE CALLED login // SEND USER TO A DIFFERENT PAGE AFTER SIGN UP //================================================================================= session_start(); $_SESSION['login']="1"; header ("location: welcome.php" ;} } else{ $errormessage= "Database NOT found"; } } } ?> <html> <head><tittle color=red size=12> SIGN UP PAGE.com</tittle> </head> <body> <form name="signup" method="POST" action="signup_page.php"> USERNAME<input type=text name=username value='' maxlength=20> PASSWORD<input type=text value='' name="password" maxlength=16><br> <input type=submit name="submit_signup" value="REGISTER"> <P> <?PHP PRINT $errormessage; ?> </body> </html> This is for welcome <?php session_start(); if (!(isset($_SESSION['login']) && $_SESSION['login'] !='')){ header ("location: loginpage2.php" ;} ?> <html> <head><tittle size=15>WELCOME <BR> YOU'RE NOW LOGIN</tittle> </head> <body> Welcome back!! <p> <a href="welcome_logout.php">Logout</a> </body> </html> And this is for welcome_logout <?php session_start(); session_destroy(); ?> <html> <head><tittle>LOGOUT PAGE</tittle> </head> <body> User loged out!!<br> <a href=loginpage.php>Click here to login</a> </body> </html> Thanks |
Hello sir, i am having problems with my login script, which i have tackle enough but i can't figure out the problem. The problem is that after creating (loginpage.php, signup_page.php, welcome.php, welcome_logout.php) i tried to login through my loginpage.php after signing up to my dba, but i found out that the loginpage.php still leads me to a signup_page.php instead of taking me to welcome.php. But if i signup_page.php, it will take me to welcome.php. Sir i don't know what to do again, so i brought my script for you to check if am mistaking something. Download it through the attachment. Thanks |
can #100000 start supply business or retailing business? @stagger thanks for your information. |
Hi all, I need a supplier of DPK in lagos. Interested person should call 08139523410 or send an email to affiliate.9ja@gmail.com with price details. |
Hi all, I just need advice on how to go into palm oil business in lagos/nigeria. I also like to get a supplier. Thanks |
are you still available, because am interested. |
Hi Nler's I need a DPK supplier. |
@PC GURU how much do you think this program will cost? |
Hi all, I like to go into this business, but i need someone who can put some experience into me, or someone who i can learn from. Thanks. |
me too!! ![]() |
Hi all i like to go into this accp/bsc program, but i am not sure about the information i received from there site, pls anyone here who has undergo this program should post his own advice, thanks. |
Hello Nler's, I like to know how lucrative this program is, and if all what is said by their website is true before i enrol. Please anyone with information about the ACCP/BSC program should comment. Thanks |
count me in! |
;