That is a very cool! Thanks!
I did however come up with a way that I think will be really easy for me to work with.
But for some reason the records are not going into the database?
here is the code
<? php $portfolio = mysql_pconnect($hostname_portfolio, $username_portfolio, $password_portfolio) or die(mysql_error()); php ?>
<?php
// Note that !== did not exist until 4.0.0-RC2
if ($handle = opendir('fashion')) {
echo "Directory handle: $handle\n";
echo "Files:\n";
}
/ This is the correct way to loop over the directory. /
while (false !== ($file = readdir($handle))) {
$j++;
echo "$file\n";
//insert array
$sql="INSERT INTO clients_fashion†('client_id','clientname') VALUES ('$j','$file')";
$inyago=mysql_query ($sql,$portfolio);
}
closedir($handle);
?>