View Single Post
  #1  
Old 23rd February 2011, 19:04
dumorim dumorim is offline
Senior Member
 
Join Date: Dec 2010
P2P
Posts: 30
Default ajshoutbox forum
Code:
///////////////////////////////////////////////////////// Action: POST
if ($action == "post") {
	$forumid = $_POST["forumid"];
	$topicid = $_POST["topicid"];
	if (!is_valid_id($forumid) && !is_valid_id($topicid))
		die("w00t");
	$newtopic = $forumid > 0;
	$subject = $_POST["subject"];
	mysql_query("INSERT INTO ajshoutbox (uid, date, name, text) VALUES(0,NOW(),'Auto Message Forum', 'Un nouveau message dans le forum par " .$CURUSER['username']. "  ...Voir " .$subjectp. "Le Message')") or sqlerr(__FILE__,__LINE__);
	if ($newtopic) {
		if (!$subject)
			showerror("Erreur", "Vous devez entrer un sujet.");
		$subject = trim($subject);
		//if (!$subject)
			//showerror("Erreur", "Vous devez entrer un sujet.");
		//showerror("Erreur", "Sous réserve est limitée à $maxsubjectlength caractères.");
	}else{
	  $forumid = get_topic_forum($topicid) or die("Bad topic ID");
	}

is showing that error

http://www.error.com/forums.php?action=vie...ic&topicid=


But I have a disorder related to the ID of the post that does not happen, it gives me not the id of the post for the announcement on ajshoutbox
Reply With Quote