Little Usefull Code

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

    Little Usefull Code

    Little usefull sourcecode that i found usefull and saved me lots of time.
    Code:
    include("config.php");
    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(name) FROM users"));
    if($noi[0]>0)
    {
    $rss = mysql_query("SELECT name FROM users");
    while($rs=mysql_fetch_array($rss))
    {
    $rs0 = ("$rs[0]");      
    @mkdir("users/".$rs[0]."");
    }
    }
    didn't have to create directories for each user, used mysql and mkdir function, and it was done in a few seconds.

    Click here!!!

    #2
    can i just ask why would u want a directory for each user.. not being sarcastic or anything i generally am interested

    Comment


      #3
      Well, you see, i've got a site builder script, and for user downloads i'm using this option just to keep it neet...

      Click here!!!

      Comment


        #4
        make sense to do it that way
        = = = = =
        The more you laugh...the longer you live.
        Read more jokes at
        http://fun-files.co.cc

        Comment

        Working...
        X