I've an if else statement.
IF the recordset is not empty AND if a specific record is greater then 0 then show.....
<?php if ($totalRows_bigimgRec > 0) { ?>
<?php
if(( $row_bigimgRec['disable_big_image'] ) > (0)) {
?>
The above is the code I have. Yes it came from dreamweaver, but I want to have it as one statement.
I have tried hundreds of different ways to no avail.
<?php if ($totalRows_bigimgRec > 0) {
AND
if(( $row_bigimgRec['disable_big_image'] ) > (0)) {
?>
the 2 conditions have to be met before I can show some thing other further down my page.
Can anyone advise as to how to get this working, I have read many manuals but am new to php and cannot get my head around.
if (($totalRows_bigimgRec > 0) AND ($row_bigimgRec['disable_big_image'] > 0)) {if ($totalRows_bigimgRec > 0 && $row_bigimgRec['disable_big_image'] > 0) {