Posted by tonjo on 02/03/06 09:45
"Jim S." <jim@yeah.com> wrote in message
news:WsyEf.10818$vU2.2333@newsread3.news.atl.earthlink.net...
> no it is not empty, i double checked. (i echoed it)
>
> can u remind me how to check if it is empty?
> i know it is something like isempty() or something :)
>
> thanks
> Jim
>
>
Ok I guess $myfile is CHAR field. Is value in quotes?
Like $myfile = "'smallPic.jpg'";
Maybe you fill it $myfile = "smallPic.jpg" and thats not god for sql
statement if table field is varchar.
Id field in table is integer and not need to be in quotes, like $id = 37;
If that doesn't help check are you connected to database.
You can check is empty with isset, but echo is good enough in your case.
$myfile = null;
// $myfile = "'smallPic.jpg'");
if(isset($myfile)) {
echo("myfile is: $myfile");
} else {
echo("myfile is empty");
}
--
΄|΄ () |\|] ()
[Back to original message]
|