ok, i downloaded the files, and im using the edit file, the config, the upload, and the delete file. There arent any coding problems, but whenever i use it, i check my table from phpadmin, and it never changed... heres the codes, could you see if i changed something wrong?
config.php
CODE
<?php
$host="www4.99k.org"; //Database Host normally localhost
$user="www4_99k_org_xxxxxx"; //Database Username
$pass="xxxxxxxx"; //Database Password
$db_name="www4_99k_org_xxxxxx";//Databse Name
$tbl_name="users"; //Database table
?>
edit.php
CODE
<?php include("config.php");
error_reporting(0);
$db = mysql_connect($host, $user, $pass);
mysql_select_db($db_name,$db);
$id = $_GET['id'];
$result = mysql_query("SELECT * FROM users WHERE id=$id",$db);
$myrow = mysql_fetch_array($result);
// echo "Email ".$myrow["email"];
?>
<form action="update.php" method="post" id="editform" >
<table width="75%" border="1" align="center">
<tr>
<td width="100%">Edit Email</td>
</tr>
<tr>
<td width="19%">New Email:</td>
<td width="81%"><input type="text" value="<?php echo $myrow['email'] ?>" name="email"></td>
</tr>
<tr>
<td valign="top">Website:</td>
<td><textarea type="text" name="website" cols=40 rows=1><?php echo $myrow['website'] ?></textarea></td>
</tr>
<tr>
<td> </td>
<td>
<input type="hidden" name="id" value="<?php echo $id ?>" >
<input type="submit" name="Submit" value="Save ">
Click<a href="java script:history.go(-1)"> Here </a>to go back</td>
</tr>
</table>
</form>
update.php
CODE
<?php include("config.php");
$db = mysql_connect($host, $user, $pass);
mysql_select_db($db_name,$db);
// print_r($_POST);
$id = $_POST['id'];
$email = $_POST['email'];
$website = $_POST['website'];
$sql = "UPDATE users SET email='$email',website='$website' WHERE id=$id";
$query=mysql_query($sql);
echo "Email and Website has been updated click";
?>
<a href="members.php"> here </a> to go back.
delete.php
CODE
<?php include("config.php"); ?>
Account was deleted click <a href="admin.php"> HERE</a> to go back
<?php
error_reporting(0);
$db = mysql_connect($host, $user, $pass);
mysql_select_db($db_name,$db);
$id = $_GET['id'];
$result = mysql_query("DELETE FROM users WHERE id=$id",$db);
?>