Dani,
Not that I've tried this exact condition but the internal portion of this
array name works elsewhere. Give it a try.
$row['${"somename_".($var)}']
- Original Message -
From: Dani <[EMAIL PROTECTED]>
To: Stefan Rusterholz <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, Jan
whoops, typo:
echo (isset($row["somename_$var"]) && $row["somename_$var"] !== "") ?
$row["somename_$var"] : "Sorry, but \$row[\"somename_$var\"] is not set.";
above code should be correct :) (notice: it's only 1 line - email could
display it on multiple lines).
and here a smaller explanation of
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 16-01-02 at 13:43
* Dani said
> hi again!
>
> I tried it but it desn't give me any result back.
> It dosn't print any error message but it desn't print my result either.
>
> this is how I place the code:
>
>
> echo "...some html code..
> hi again!
>
> I tried it but it desn't give me any result back.
> It dosn't print any error message but it desn't print my result either.
>
> this is how I place the code:
>
>
> echo "...some html code...";
> $row["somename_$var"];
> echo "...the continuation of the html code";
>
> thanks!
I th
4 matches
Mail list logo