=1000) $errors['text'] = true; if(empty($_POST['name']) || strlen($_POST['name'])>=250) $errors['name'] = true; if(!isset($_SESSION['imagekey']) || strtoupper(str_replace(' ','',$_SESSION['imagekey'])) != strtoupper($_POST['inputkey'])) $errors['inputkey'] = true; if (!count($errors)) { safe_insert("INSERT INTO blog_reaction SET name = '$name',text = '$text' ,created = NOW(), postId = $postId, blogid = $blogid"); safe_update("UPDATE blog_post SET reactions = reactions+1 WHERE id = $postId"); unset($_SESSION['imagekey']); $text = ''; $name = ''; } } $res = safe_query("SELECT id,title_nl as title,text_nl as text,intro_nl as intro,UNIX_TIMESTAMP(date) as date,reactions FROM blog_post WHERE id=$postId"); if(!mysql_num_rows($res)) { header("Location: ./".$filename.".html"); exit(); } $post=mysql_fetch_array($res) ?>

Logboek



Reacties:

door op
 


Reageer:

naam name="name" style="width:250px" value="">
bericht
controle type="text" size=20>

Lees ook:

'.date('d/m/Y',$post['date']).' '.htmlspecialchars($post['title']).'' . '

'; ?> Overzicht Alle »