Images in the room.

Started on the old forum in February 2011 · view the original in the archive · old links redirect here

No replies · 321 views · started 15 years ago · 1 min read

Leviathan73 Senior · 260 posts #1

Hello, how do I put the image into the room with the query? is out of the room

echo "<b>2 </b><a accesskey=\"2\" href=\"index.php?action=mkroom&sid=$sid\">Create Room Private</a><br/><br/>";
        $rooms = mysql_query("SELECT id, name, pass, pic FROM ibwf_rooms WHERE static='0'"); 
        $co=0; 
        while ($room= mysql_fetch_array($rooms)) 
        { 
 $ilink = trim($ilink[3]=="");
if($ilink=="")
  { 
    echo $ilink = "<img src=\"../images/logo.gif\" alt=\"*\"/><br/>"; 
  }else{ 
   $ilink = $room[3];
echo $ilink = "<img src=\"$ilink[3]\" width=\"100\" height=\"100\" alt=\"*\"/><br/>"; 
 
  } 
  
 
            $co++;
          if(canenter($room[0], $sid))
          {
            $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE rid='".$room[0]."'"));
            if($room[2]=="")
            {
            echo "<a href=\"chat.php?sid=$sid&rid=$room[0]\">".htmlspecialchars($room[1])."($noi[0])</a><br/>";
            }else{
echo htmlspecialchars($room[1]);

              //echo "($noi[0])";
echo "<form action=\"chat.php\" method=\"get\">";
              echo "<br/><input format=\"*x\" name=\"rpw\" maxlength=\"10\"/><br/>";
echo "<input type=\"submit\" value=\"GO\"/>";
              echo "<input type=\"hidden\" name=\"rid\" value=\"$room[0]\"/>";
              echo "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
              echo "</form>";
            }
          }
        }

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close