Help! Image not seen

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help! Image not seen

    Hello friends, I have this code in the file index.php
    PHP Code:
    echo "<form action=\"genproc.php?action=mkroom&amp;sid=$sid\" method=\"post\">"
        echo 
    "Room Name: <input name=\"rname\" maxlength=\"30\"><br/>"
        echo 
    "Password: <input name=\"rpass\" style=\"-wap-input-format: '*x'\" maxlength=\"10\"><br/>"
        echo 
    "Pic Url: <input name=\"pic\" maxlength=\"255\" value=\"http://\"/><br/>"
        echo 
    "<input type=\"Submit\" name=\"Create\" Value=\"Create\"></form>";  
    $pic mysql_escape_string($_POST["pic"]); 
    $pic htmlspecialchars($pic); 
            
    $res mysql_query("INSERT INTO ibwf_rooms SET name='".$rname."', pass='".$rpass."', censord='".$cns."', static='0', lastmsg='".time()."', pic='".$pic."'"); 
    in the db ibwf_rooms added
    pic varchar(255) default=""
    and I have this code in the file chat.php
    PHP Code:
    $rooms mysql_query("SELECT id, name, pass, pic FROM ibwf_rooms WHERE static='0'");
            
    $co=0;
            while (
    $roommysql_fetch_array($rooms))
            {
    $ilink trim($room[1]);
      if(
    $ilink=="")
      {
       
    $ilink "<img src=\"$ilink\" alt=\"*\"/><br/>";
     
                
    $co++;
              if(
    canenter($room[0], $sid))
     
                {
                  echo 
    "$ilink <a href=\"chat.php?&amp;rid=$room[0]&amp;sid=$sid\"></a><br/>";
                }else{
                  echo 
    htmlspecialchars($room[1]);
                  echo 
    "$ilink <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>";
                }
              }
            } 
    The problem is that when I load an image, (http://universal3000.altervista.org/..._holidays4.gif
    ) you can not see. I changed so
    PHP Code:
    $ilink =$room[3];
      if(
    $ilink=="")
      {
       
    $ilink "<img src=\"$ilink\" alt=\"*\"/><br/>"
    but you can not see.
    Last edited by Leviathan73; 03.12.09, 17:13.
Working...
X