starter
|
| Posted: 08/27/2005, 9:56 AM |
|
Im trying to hide an image control if the field "image" is empty, because CCS shows a red X if there's no image name stored in the database.
I tryied this:
if ($grid->imagefield->value=empty)
{
$grid->imagefield->visible= false;
}
But it doesnt work, as you can see Im new in php...
|
|
|
 |
Damian Hupfeld
|
| Posted: 08/28/2005, 5:20 AM |
|
Right-click on the image and select "Edit Image...", then set the "Extended
HTML" option.
global $grid;
// Write your own code here.
// Hide image if the database value for "pic" is blank
if ($grid->pic->GetValue() =="") $grid->pic->Visible = false;
regards
Damian Hupfeld http://www.nexthost.com.au/services.php
"starter" <starter@forum.codecharge> wrote in message
news:543109b39783f2@news.codecharge.com...
> Im trying to hide an image control if the field "image" is empty, because
> CCS
> shows a red X if there's no image name stored in the database.
>
> I tryied this:
>
> if ($grid->imagefield->value=empty)
> {
> $grid->imagefield->visible= false;
> }
>
> But it doesnt work, as you can see Im new in php...
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|