I've got 3 forms that you type text into and then it sends it off too a DB.
$info = "update images set url='$url', title='$title', caption='$caption' where id = '$id'";
The problem I'm having is that there is possibly already going to be stuff in 'url' beforehand. Is there anyway I can set it up so that if any of the variables aren't filled, it won't put that into $info?
For example, if $url was empty, instead of
$info = "update images set url='$url', title='$title', caption='$caption' where id = '$id'";
it would be
$info = "update images set title='$title', caption='$caption' where id = '$id'";
Any help would be appreciated.