All pastes #397483 Raw Edit

Someone

public text v1 · immutable
·published 2007-03-16 15:06 UTC
rendered paste body
	$title = addslashes($_REQUEST['title']);
	$entry = addslashes($_REQUEST['entry']);
	$date = $_REQUEST['date'];
	$type = $_REQUEST['type'];

	// this last parameter isnt used in this instance of the function, tho its passed
	   in the event an entry with this datetime already exists. This could happen due
	   the fact this same file saves edits too.
	dbUpdate('news','title = "'.$title.'", entry = "'.$entry.'", date = "'.$date.'", type = "'.$type.'"','date = "'.$date.'"');

	// this is from the function dbUpdate, ive debugged pretty thoroughly and printed $query, thats the string i pasted to irc.
	$query = "INSERT INTO ".$table." VALUES (".$values.")";