now i have a database and a from. i can now insert data from a form into mydatabase but till now i’m trying to update data and i can not after that i treid to delete data and i can not reach it also can anyone help me
@MindzaiDec 01.2008 — #What exactly is the problem you are having? Can you post your code? Without those nobody can do much except point you to the MySQL Manual.
/// 1. create a database connection $connection = mysql_connect($DBhost, $DBuser) or die ("database connect error: " . mysql_error()); //// 2. select a database to use $db_connect = mysql_select_db($DBname, $connection) or die ("database select error: " . mysql_error());
@MindzaiDec 01.2008 — #I'm still not sure exactly what you're asking but if it;s how to update data take a look at the MySQL Manual Page for Update which shows you.
Also you really need to sanitize your form data. As it stands I could very easily delete all the data in your tables (or do pretty much anything else) just from filling out your form in a certain way.