ok l'immagine si vede nella lista delle stanze, ma vorrei che l'immagine andasse dentro la stanza di chat privata che ho aperto, metto il codice
Codice PHP:
include("config.php"); 
include(
"core.php"); 
connectdb();
$color=$_POST['color'];
$action=$_GET["action"];
$id=$_GET["id"];
$sid $_GET["sid"];
$rid=$_GET["rid"];
$rpw=$_GET["rpw"];
$uid getuid_sid($sid);
$uexist isuser($uid);
$theme mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'"));
$data date("H:i");
$sound mysql_fetch_array(mysql_query("SELECT `chsound` FROM ibwf_users WHERE id='".$uid."'"));

if((
islogged($sid)==false)||!$uexist)
    {
    echo 
"<head>";
      echo 
"<title>Error!!!</title>";
      echo 
"<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white_medium.css\">"
      echo 
"</head>";
      echo 
"<body>";
      echo 
"<center>";
      echo 
"Non sei loggato
"
;
      echo 
"O la tua sessione è scaduta

"
;
      echo 
"<a href=\"index.php\">Login</a>";
      echo 
"</center>";
      echo 
"</html>";
      echo 
"</body>";
      exit();
    }
    
if(
isbanned($uid))
    {
      echo 
"<head>";
      echo 
"<title>Error!!!</title>";
      echo 
"<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      echo 
"</head>";
      echo 
"<body>";
      echo 
"<p align=\"center\">";
      echo 
"<img src=\"../images/notok.gif\" alt=\"x\"/>
"
;
      echo 
"[b]Sei stato Bannato[/b]

"
;
      
$banto mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'"));
    
$banres mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'"));
      
$remain $banto[0]- time();
      
$rmsg gettimemsg($remain);
      echo 
"[b]Tempo rimasto: [/b]$rmsg
"
;
      
$nick getnick_uid($banto[2]);
    echo 
"[b]By: [/b]$nick
"
;
    echo 
"[b]Motivo: [/b]$banto[1]";
      
//echo "<a href=\"index.php\">Login</a>";
      
echo "</p>";
      echo 
"</body>";
      echo 
"</html>";
      exit();
    }
    
$isroom mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_rooms WHERE id='".$rid."'"));
    if(
$isroom[0]==0)
    {
    echo 
"<head>";
      echo 
"<title>Error!!!</title>";
  echo 
"<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      echo 
"</head>";
      echo 
"<body>";
      echo 
"<center>";
      echo 
"[b]La Room non esiste[/b]

"
;
      echo 
"<a href=\"index.php?action=chat&amp;sid=$sid\">Chatrooms</a>";
      echo 
"</center>";
      echo 
"</body>";
      echo 
"</html>";
      exit();
    }
    
$passworded mysql_fetch_array(mysql_query("SELECT pass FROM ibwf_rooms WHERE id='".$rid."'"));
    if(
$passworded[0]!="")
    {
      if(
$rpw!=$passworded[0])
      {
    echo 
"<head>";
      echo 
"<title>Error!!!</title>";
  echo 
"<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      echo 
"</head>";
      echo 
"<body>";
      echo 
"<center>";
      echo 
"[b]Password Errata![/b]
"
;
      echo 
"Non è possibile entrare in questa stanza

"
;
      echo 
"<a href=\"index.php?action=chat&amp;sid=$sid\">Chatrooms</a>";
      echo 
"</center>";
      echo 
"</body>";
      echo 
"</html>";
      exit();
      }
    }
    if(!
canenter($rid,$sid))
    {

    echo 
"<head>";
      echo 
"<title>Error!!!</title>";
  echo 
"<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      echo 
"</head>";
      echo 
"<body>";
      echo 
"<center>";
      echo 
"[b]Autorizzazione negata![/b]

"
;
      echo 
"<a href=\"index.php?action=chat&amp;sid=$sid\">Chatrooms</a>";
      echo 
"</center>";
      echo 
"</body>";
      echo 
"</html>";
      exit();
    }

    
addtochat($uid$rid);
        
$timeto 300;
        
$timenw time();
        
$timeout $timenw-$timeto;
        
$rooms mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
        
$rname $rooms[1];
        
$nick getnick_sid($sid);
        
    
      if (
$action=="")
      {
      echo 
"<head>";
      echo 
"<title>$rname</title>";
      echo 
"<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      
$unreadpopup=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_popups WHERE unread='1' AND touid='".$uid."'"));
      if (
$unreadpopup[0]<1)
      {
      echo 
"<meta http-equiv=\"refresh\" content=\"30; url=chat.php?time=";
      echo 
"".date("dmHis")."";
      echo 
"&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">";
      }
      echo 
"</head>";
      echo 
"<body>";
      echo 
"<bgsound src=\"$sound\" loop=\"infinite\"/>";
  
$mmsg htmlspecialchars(getsetmood(getuid_sid($sid)));
        
addonline($uid,"Chatta in $rname ($mmsg)","chat.php?rid=$rid&amp;rpw=$rpw");
        
//echo "

";
        echo popup(
$sid);


$str = mysql_query("SELECT value FROM ibwf_settingss WHERE name='4ummsg'"); 
$fmsg = getbbcode($str[0]$sid, 0); 
  echo "
<p align=\"left\">$fmsg</p>";   
       echo 
"[b]1 [/b]<a name=\"top\" id=\"top\" accesskey=\"1\" href=\"chat.php?action=say&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">Scrivi</a>
"
;
        echo 
"[b]2 [/b]<a accesskey=\"2\" href=\"#opt\">vai giu</a>
"
;
        echo 
"[b]* [/b]<a accesskey=\"*\" href=\"chat.php?time=";
        echo 
"".date("dmHis")."";
        echo 
"&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">Aggiorna</a>
"