Code: Select all
$id = $_GET['id'];
mysql_connect("localhost","{{username}}","{{password}}");
mysql_select_db("{{database}}");
$tablename = $_POST['category'];
$title = $_POST['title'];
$definition = $_POST['definition'];
mysql_query(UPDATE $tablename SET title = $title, definition = $definition WHERE auto_id = $id LIMIT 1);Code: Select all
Parse error: parse error, unexpected T_VARIABLE

