change this code

11/07/2010 08:21 marlyandedsel#1
<?php

session_start();

include 'db.php';

$username = $_POST['username'];
$password = $_POST['password'];
$newpassword = $_POST['newpassword'];
$confirmnewpassword = $_POST['confirmnewpassword'];

$result = mysql_query("SELECT password FROM users WHERE username='$username'");
if(!$result)
{
echo "The username you entered does not exist";
}
else
if($password!= mysql_result($result, 0))
{
echo "You entered an incorrect password";
}
if($newpassword=$confirmnewpassword)
$sql=mysql_query("UPDATE users SET password='$newpassword' where username='$username'");
if($sql)
{
echo "Congratulations You have successfully changed your password";
}
else
{
echo "The new password and confirm new password fields must be the same";
}
?>


i have found this in the other forum, this code is to change password
using mysql, if someone out there knows how to convert this into flat file I know there are many code coders out there thnks.

i use this
path file C:\OldCODB\Users.
11/07/2010 13:20 .Beatz#2
For a start MySql code and the code for a flatfile db are different.

Secondly I am not sure if you CAN change the password using a flatfile db.

You would have to look at the way the reg page is for flat file and take it from there.
11/08/2010 22:57 BioHazarxPaul#3
thats what the epic webserver was for it checks information on port 80 that gets sent to the computer and inputs the information into the account flatfile database

oh forgot to add it should be found in the NewestCOServer V2 download I am sure that's what your using.
11/09/2010 10:55 |NeoX#4
or just make a small pae in ASP.NET (C#) not hard at all...
11/09/2010 11:21 SYSTEM 32#5
Quote:
Originally Posted by |NeoX View Post
or just make a small pae in ASP.NET (C#) not hard at all...
***REPEATER can do it***