User Password Change Part 3 - Tamil
- subtitles off
- captions off
- English
- Tamil
- Questions posted on Forums
- PHP and MySQL Tutorials - Tamil
-
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
-
18GET Variable
-
19POST Variable
-
20Embedding PHP
-
21Common Way to Display HTML
-
22Common Errors Part 1
-
23Common Errors Part 2
-
24Common Errors Part 3
-
25MySQL Part 1
-
26MySQL Part 2
-
27MySQL Part 3
-
28MySQL Part 4
-
29MySQL Part 5
-
30MySQL Part 6
-
31MySQL Part 7
-
32MySQL Part 8
-
33Simple Visitor Counter
-
34PHP String Functions Part 1
-
35PHP String Functions Part 2
-
36File Upload Part 1
-
37File Upload Part 2
-
38Cookies Part 1
-
39Cookies Part 2
-
40Sessions
-
41MD5 Encryption
-
42Sending Email Part 1
-
43Sending Email Part 2
-
44Sending Email Part 3
-
45Display Images from a Directory
-
46User Login Part 1
-
47User Login Part 2
-
48User Login Part 3
-
49User Password Change Part 1
-
50User Password Change Part 2
-
User Password Change Part 3
-
52User Registration Part 1
-
53User Registration Part 2
-
54User Registration Part 3
-
55User Registration Part 4
-
56User Registration Part 5
-
57User Registration Part 6
Questions posted on ST Forums:
1224 visits
Outline:
User ன் Password ஐ மாற்றுதல் பகுதி 3 Database ல் புதிய password ஐ update செய்தல். mysql_query('TYPE_HERE_YOUR_MYSQL_QUERY') - இது நமது database ல் குறிப்பிட்ட query களை இயக்க பயன்படுகிறது. இங்கே இது database ல் புதிய password ஐ update செய்கிறது.
Width: | 860 | Height: | 480 |
---|---|---|---|
Duration: | 00:05:05 | Size: | 4.7 MB |
Show video info