empty() should work fine, could you post some code to explain where the problem is?
sample:
if (!empty($row[0]))
{
$something = $row[0];
}
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403
i think the item you are evaluating is an object and needs to converted to a string to be read like that.
maybe this will work (just a guess)
if (gettype($var) !== 'string') {
if (settype($var,"string")) {
echo $var . ' set to string';
}
else {
echo $var ' not able to be set to string';
}
}
//process variable
I have never had to do this so I don't know if it will work
kkeith29
Nearly a Posting Virtuoso
1,357 posts since Jun 2007
Reputation Points: 235
Solved Threads: 194