Error code that i cant explane on line 15


$db_host = “localhost”;
$db_username = “root”;
$db_pass = “”;
$db_name = “tommy”;

@mysql_connect(“$db_host”,“$db_username”,“$db_pass”) or die(“död1”);
@mysql_select_db(“$db_name”) or die (“död2”);

if ( isset($_post[‘title’], $_post[‘content’]))

mysql_query(‘insert into tommy set
title = ‘{$_post[‘title’]}’,
content = ‘{$_post[‘content’]}’’);

<form method=“post” action=“”>
<textarea type=“name” cols=“40” rows=“1”>skriv din titel här</textarea><br />
<textarea type=“name” cols=“40” rows=“5”>skriv din text här</textarea><br />
<input type=“submit” value=“post” />

You are using single quotes inside a string delimited by single quotes. You’ll have to escape the single quotes inside the string, or delimit the string with double quotes:

mysql_query("insert into `tommy` set
`title` = '{$_post['title']}',
`content` = '{$_post['content']}");