$y = 31;
for($x=0; $x < $y; $x++)
{
echo "day ". ($x+1) ." - report " . ((isset($arr[$x+1]))?
$arr[$x+1]:"0") . ""; //$x+1 is required because you can never have
day 0
}
""sonu gill"" <[EMAIL PROTECTED]> wrote in messa
>From what I gathered you simply want to print all days and the "reporte"
field info and if there isn't any then 0.
Assuming you used SQL and retrieved your information from the db into an
associated Array
$arr //the results from the DB...
$y = 31; //Assuming you are working with 31 days...
Yes, that would be correct. Make sure all permanent directories such as "0" or
"1" already exist, and generate all dynamic folders using mkdir function.
Also, remember the templates you will be using.
-sonu
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED] ; ph
>From my understanding of what you are trying to do you have templates,
perhaps, setup for your users that get customized with each individuals
data. In that case what you will require to do is first off
1. create a folder for user underneath the corresponding location you want
the user setup,
Hi Adi
http://www.php.net/manual/en/ref.classobj.php
Check out the link above, and I'm sure you'll find what you are looking for.
You will find functions there called get_class & get_class_vars that I think
you will find very helpful.
Hope this helps...
-sonu
"Adi Zebic" <[EMAIL PROTECTED]>
5 matches
Mail list logo