Little Usefull Code

Started on the old forum in July 2008 · view the original in the archive · old links redirect here

3 replies · 611 views · started 18 years ago · 1 min read

3 participants
SpiderWap Lead · 622 posts #1

Little usefull sourcecode that i found usefull and saved me lots of time.

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.

djlee Developer · 224 posts #2

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

stretch Developer · 130 posts #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

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