Ciao a tutti ho questa funzione, ma non mi fa scrivere il messaggio in stanza, ma nella tabella del database è memorizzato il messaggio, quindi è la funzione che non riesco a dargli la giusta funzione
Codice PHP:
echo "<form action=\"genproc.php?action=general&amp;sid=$sid\" method=\"post\">"
echo 
"
Oggetto: <input name=\"fmsg\"  value=\"
$fmsg\" maxlength=\"255\" />"
echo 
"
<input type=\"Submit\" Name=\"Submit\" Value=\"Invio\"></form>"

Codice PHP:
//////////////////////////oggetto chat////////////////////////// 

if($action=="general"

$fmsg $_POST["fmsg"]; 

echo 
"<head>"
  echo 
"<title>Oggetto Chat</title>"
  echo 
"<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">"
  echo 
"</head>"
  echo 
"<body>"
  echo 
"<p align=\"center\">";   

 
$res mysql_query("UPDATE ibwf_settingss SET value='".$fmsg."' WHERE name='4ummsg'"); 
  if(
$res
  { 
  echo 
"<img src=\"../images/ok.gif\" alt=\"O\"/>Oggetto scritto con successo
"

  }else{ 
  echo 
"<img src=\"../images/notok.gif\" alt=\"X\"/>Errore oggetto scritto
"

  } 
 echo 
"[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>"
  echo 
"</p>"
  echo 
"</body>"

Codice PHP:
if($action=="general"

$fmsg $_POST["fmsg"];echo "<head>"
  echo 
"<title>Oggetto Chat</title>"
  echo 
"<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">"
  echo 
"</head>"
  echo 
"<body>"
  echo 
"<p align=\"center\">";   $res mysql_query("UPDATE ibwf_settingss SET value='".$fmsg."' WHERE name='4ummsg'"); 
  if(
$res
  { 
  echo 
"<img src=\"../images/ok.gif\" alt=\"O\"/>scritto con successo
"

  }else{ 
  echo 
"<img src=\"../images/notok.gif\" alt=\"X\"/>Error scrittura
"

  } 
 echo 
"[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>"
  echo 
"</p>"
  echo 
"</body>"