you could try changing the sql to this for the insert
$query_poem_search="INSERT INTO search(url,name,description,title,type)values('.$li
nkPoem.','.$Writer_name_poem.','.$Poem_content.','.$Poem
_title.','Poem.')";
add the concatenation operator to the query to specifically separate out the variables
hth