J
|
Jane 1/29/2008 |
Stephan, {if $row.1FieldName_value!=""} <TR><TD class=shade>FieldName</TD> <TD {$row.1FieldName_style}>{$row.1FieldName_value} </TD></TR> {/if} |
M
|
mmponline author 1/29/2008 |
Jane |
S
|
swanside 1/29/2008 |
I would also like to thank Jane for that aswell. Didnt think about it, but it will come in usful. |
J
|
Jane 1/30/2008 |
Stephan, |
M
|
mmponline author 5/26/2008 |
Jane |
J
|
Jane 5/26/2008 |
Stephan, {if $show_FieldName} <TR><TD class=shade>FieldName</TD> ... </TR> {/if} |
M
|
mmponline author 5/26/2008 |
Baie dankie! (Pronounced as Buy-a-donkey) |
X
|
xliner 11/28/2008 |
Jane, |
J
|
Jane 11/28/2008 |
What PHPRunner version do you use? |
X
|
xliner 11/28/2008 |
What PHPRunner version do you use?
|
X
|
xliner 11/29/2008 |
Jane, PHPRunner 5.0 - Build 689... Hajo
|
X
|
xliner 11/29/2008 |
Jane, I think, the following could possibly provide the starting point (ex EVENTS > LIST > BEFORE DISPLAY) on the issue ... quote function BeforeShowList(&$xt,&$templatefile) { //** Check if specific record exists **** global $conn; $strSQLExists = "select * from AnyTable where AnyColumn='AnyValue'"; $rsExists = db_query($strSQLExists,$conn); $data=db_fetch_array($rsExists); if($data) { // if record exists do something } else { // if dont exist do something else } unquote Now..., the empty IF/ELSE lines need to be completed with the correct code... HTH Hajo
|