User Password Change Part 3 - Punjabi
- subtitles off
- captions off
- English
- Punjabi
- Questions posted on Forums
- PHP and MySQL Tutorials - Punjabi
-
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
-
2XAMPP in Linux
-
3Echo Function
-
4Variables in PHP
-
5If Statement
-
6Switch Statement
-
7Arithmatic Operators
-
8Comparison Operators
-
9Logical Operators
-
10Arrays
-
11Multi Dimensional Arrays
-
12Loops While Statement
-
13Loops Do While Statement
-
14Loops For Statement
-
15Loops Foreach Statement
-
16Functions Basic
-
17Functions Advanced
-
18POST Variable
-
19Embedding PHP
-
20Common Way to Display HTML
-
21Common Errors Part 1
-
22Common Errors Part 2
-
23Common Errors Part 3
-
24MySQL Part 1
-
25MySQL Part 2
-
26MySQL Part 3
-
27MySQL Part 4
-
28MySQL Part 5
-
29MySQL Part 7
-
30MySQL Part 8
-
31Simple Visitor Counter
-
32PHP String Functions Part 1
-
33PHP String Functions Part 2
-
34File Upload Part 1
-
35File Upload Part 2
-
36Cookies Part 1
-
37Cookies Part 2
-
38Sessions
-
39MD5 Encryption
-
40Sending Email Part 1
-
41Sending Email Part 2
-
42Sending Email Part 3
-
43Display Images from a Directory
-
44User Login Part 1
-
45User Login Part 2
-
46User Login Part 3
-
47User Password Change Part 1
-
48User Password Change Part 2
-
User Password Change Part 3
-
50User Registration Part 1
-
51User Registration Part 2
-
52User Registration Part 3
-
53User Registration Part 4
-
54User Registration Part 5
-
55User Registration Part 6
Questions posted on ST Forums:
808 visits
Outline:
ਡੇਟਾਬੇਸ ਵਿਚ ਨਵੇਂ ਪਾਸਵਰਡ ਨੂੰ ਅੱਪਡੇਟ ਕਰਨਾ . mysql_query ( TYPE_HERE_YOUR_MYSQL_QUERY ) - ਇਹ ਸਾਡੇ ਡੇਟਾਬੇਸ ਉੱਤੇ ਵਿਸ਼ੇਸ਼ queries ਨੂੰ ਚਲਾਉਂਦਾ ਹੈ . ਇਥੇ ਇਹ ਡੇਟਾਬੇਸ ਵਿਚ ਨਵੇਂ ਪਾਸਵਰਡ ਨੂੰ ਅੱਪਡੇਟ ਕਰਦਾ ਹੈ .
Width: | 860 | Height: | 480 |
---|---|---|---|
Duration: | 00:05:05 | Size: | 5 MB |
Show video info