[PHP-DB] Array key problem

2003-02-25 Thread Jorge Miguel Fonseca Martins
Hi! Anyone got an idea what the problem may be with the following code
 
 $test[]=a;
 $test[]=b;
 
 foreach ($test as $key=$value)
 {
  if($key == something) echo $key
 }
 
even though theres no key in the array named something the code will
print the key 0
 
Thanks


[PHP-DB] Date

2003-02-28 Thread Jorge Miguel Fonseca Martins
How can a make a query that lists all the fields where a datefield as
the date of tomorow?
 
thanks