250) $error['text']="Too long"; if(!isset($error)) { // DO WE WANT TO MODIFY OR CREATE ? $tmptitle="aangemaakt"; if($filebookId) { safe_update ( 'UPDATE filebook' . " SET title = '".(mysql_escape_string(htmlspecialchars($title)))."'" . " , text = '".(mysql_escape_string(htmlspecialchars($text)))."'" . " , modified = NOW()" . " WHERE id = ".$filebookId); $tmptitle="aangepast"; } else $filebookId = safe_insert ( "INSERT INTO filebook" . " SET title = '".mysql_escape_string(htmlspecialchars($title))."'" . " , text = '".mysql_escape_string(htmlspecialchars($text))."'" . " , created = NOW()" . " , ownerId = ".$_SESSION['authUser']['id']); $type = "Map"; include 'done.inc'; exit(); } } else if($filebookId) { $res = safe_query ( "SELECT title,text" . " FROM filebook WHERE id=$filebookId"); if(mysql_num_rows($res)) list($title,$text)=mysql_fetch_array($res); } ?>

filealbum

">
Titel: type="text" style="width:400px;" value="">
Beschrijving: