User Password Change Part 3 - Telugu
- subtitles off
- captions off
- English
- Telugu
- Questions posted on Forums
- PHP and MySQL Tutorials - Telugu
-
ERROR IN CHANGE PASSWORD TUTORIAL
HELLO ! THANX FOR YOUR TUTORIALS . THESE WERE VERY HELPFUL FOR ME.. BUT AFTER I FOUND ALL , I COULDN'T GO RIGHT WITH CHANGE PASSWORD TUTORIAL. THERE IS AN ERROR COMING ON MY SCREEN .. YOU PLEASE CHECK IT OUT... Fatal error: Function name must be a string in C:\xampp\htdocs\changepassword.php on line 195 PLEASE TELL ME WAT IS THE PROBLEM<?php@$username = $_SESSION['username'];@$submit=$_POST['submit'];if ($username){ if('submit') { @$oldpassword =md5($_POST['oldpassword']); @$newpassword =md5($_POST['newpassword']); @$repassword =md5($_POST['repassword']); $connect = mysql_connect("localhost","root",""); mysql_select_db("userlogin") or die(); $queryget = mysql_query("SELECT password FROM users WHERE username='$username'") or die("couldn't connect!"); $row = mysql_fetch_assoc($queryget); $oldpassworddb = $row['password']; if($oldpassword==$oldpassworddb) { if($newpassword==$repassword) { $querychange =mysql_query("UPDATE users SET password='$newpassword' WHERE username='$username'"); die("Your password has been changed. <a href='mbkpage.php'>Return</a> back to main page"); } else die ("New Passwords Do Not Match"); } ELSE die ("Old Passwords doesnt match"); } else { echo"<form action='changepassword.php' method='POST'> Old Password: <input type='text' name='oldpassword'><p> New Password: <input type='password' name='newpassword'><br> Repeat New Password: <input type='password' name='repassword'><p> <input type='submit' name='submit' value='Change Password'> </form> "; } } else die ("you must be logged in");?>
03-04M 0-10S SLAVE OF ALLAH
Answer last updated on: Jan. 7, 2015, 7:37 p.m.
-
1XAMPP in Windows
-
2If Statement
-
3Switch Statement
-
4Arithmatic Operators
-
5Comparison Operators
-
6Logical Operators
-
7Multi Dimensional Arrays
-
8Loops While Statement
-
9Loops Do While Statement
-
10Loops For Statement
-
11Loops Foreach Statement
-
12Functions Advanced
-
13GET Variable
-
14POST Variable
-
15Embedding PHP
-
16Common Way to Display HTML
-
17MySQL Part 2
-
18File Upload Part 2
-
19Cookies Part 1
-
20Cookies Part 2
-
21Sessions
-
22MD5 Encryption
-
23Sending Email Part 1
-
24Sending Email Part 3
-
25User Login Part 2
-
User Password Change Part 3
-
27User Registration Part 1
-
28User Registration Part 2
-
29User Registration Part 3
-
30User Registration Part 5
Questions posted on ST Forums:
1140 visits
Outline:
User Password Change Part 3 updating the new password in database. mysql_query('TYPE_HERE_YOUR_MYSQL_QUERY') - It is used to run specific queries on our database. Here it updates new password into database.
Width: | 860 | Height: | 480 |
---|---|---|---|
Duration: | 00:05:05 | Size: | 4.3 MB |
Show video info