I want to post info from a form am i doing it right like this?
code:
$sql= "UPDATE molly SET inhoud = $_POST['inhoud']";
mysql_query($sql) or die (mysql_error());
EDIT: I'm using this but it gives an error, sorry i'm a real n00b
, and yes i know i should read some books first, but i'm lazy
...
code:
<?
include_once('connection.inc.php');
opendb();
$sql= "UPDATE 'molly' SET 'inhoud' = '$_POST['inhoud']'";
mysql_query($sql) or die (mysql_error());
?>