update function...
Posted: Fri Feb 24, 2006 7:47 am
I use this to insert data into my DB...
If I want to update that same value, what is the command i use? I assume its some sort of UPDATE command, but cant seem to find what im looking for.
Thanks
Code: Select all
<?php
$dblink = mysql_connect("localhost", "root", "password");
mysql_select_db("dbname", $dblink);
$query1 = "INSERT INTO sometable (field1)".
"VALUES ('111234567890') " or die ("Unable to run query");
$dbresult = mysql_query($query1, $dblink);
mysql_close();
?>Thanks
Code: Select all
Code: Select all