- Joined
- Aug 20, 2008
- Messages
- 38
- Reaction score
- 1
Heyy
Ive Just Found A Code , Which Updates php Tables Threw A html Form , i Wont this Code to Edit A Users
username And Password
But I Dont No Where I Should Input The Table Details . Here Is the PHP Code .
My Database = test
My Section = member
And The Tables For the Username And Password Are
username And Password .
Sorry im a Noob :thumbdown: Lol
Thanks - Pringle
Ive Just Found A Code , Which Updates php Tables Threw A html Form , i Wont this Code to Edit A Users
username And Password
But I Dont No Where I Should Input The Table Details . Here Is the PHP Code .
PHP:
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("mydatabase", $con);
mysql_query(" UPDATE stuff SET Amount = ('$_POST[amount]')
WHERE Item = ('$_POST[item]') ");
mysql_close($con);
?>
My Database = test
My Section = member
And The Tables For the Username And Password Are
username And Password .
Sorry im a Noob :thumbdown: Lol
Thanks - Pringle