Hiya,
I'm pulling my hair out over a conditional statement I just can't seem to get right.
Basically I have a image upload script but I only want to use it if there is an image selected. If this filed is empty then move on to the rest of the code.
This is what I have
//if there is a logo
[B]if(!empty($_FILES['vImage'])&& ($_FILES['vImage']!= ''))[/B]{
image upload script here
// now we need to insert into the articles table
insert data script
}
//if there isn't a logo
else{
just insert data script
}
Any ideas as to what is going wrong with my if statement ?
Thanks in advance