Auto Resize images

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

    Auto Resize images

    Hey who got a code to auto resize the images after upload ?

    Added after 12 minutes:

    here are the code i have in the shoutbox but i cant see how to resize the nick icon on here
    Code:
       $online = mysql_fetch_array(mysql_query("SELECT sex, uicon FROM mx_users WHERE id='".$uid."'"));
     if($online[1]=="")
     {
     $seximg = "";
    }else{
     $seximg = "<img src=\"$online[1]\" alt=\"*\"/>";
     }
      $shnick = getnick_uid($uid);
     $cname = cname($uid);
     if(($cname == "000000")||($cname == "")){ $fonto = "";
     $fontc = ""; }else{ $fonto = "<font color=\"$cname\">";
     $fontc = "</font>"; }
      $shbox .= "<table><tr><td>".$seximg."<a href=\"prov.php?show=viewuser&amp;hits=$hits&amp;who=$uid\">$fonto".$shnick."$fontc</a></td><td><br/>";
     $ctext = ctext($uid);
     if(($ctext == "000000")||($ctext == "")){ $texto = "";
     $textc = ""; }else{ $texto = "<font color=\"$ctext\">";
     $textc = "</font>"; }
    and this one ive got on main page
    Code:
      $cname = cname($uid);
     if(($cname == "000000")||($cname == ""))
     {
     $fonto = "";
     $fontc = "";
     }else{
     $fonto = "<font color=\"$cname\">";
     $fontc = "</font>";
     }
      echo "$login Login As $seximg<a href=\"prov.php?show=viewuser&amp;hits=$hits&amp;who=$uid\">$fonto$nick$fontc</a><br/>";
    any how i can make it smaller like 35x35 with this or other coding \" height=\"100\" width=\"100\" alt=\"*\
    Last edited by riderz; 02.11.10, 15:47.
    ________________
    Jacques
    jacques@gw-designs.co.za
    http://coding.biz.tm
    Come join and lets make it a place to learn all the noobies how to code
    __________________

    NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

    #2
    Upload and Resize an Image with PHP
    sigpic

    Comment

    Working...
    X