IF statement php

Can someone please tell me how to rewrite this statement so that it represents a value:

<?php if (!empty($row_artGallery[artgal_fsize])

example:
<?php if ($row_artGallery[artgal_fsize]) = "cm"
doctorbillAsked:
Who is Participating?
 
Chris StanyonConnect With a Mentor Commented:
Comparison in PHP is the double equals, and the whole IF statement should be wrapped in parenthesis

<?php if ($row_artGallery['artgal_fsize'] == "cm") {
...
}

Open in new window

0
 
aboo_sConnect With a Mentor Commented:
<?php if ($row_artGallery[artgal_fsize] .src=="/images/flower.jpg") echo "found!";
0
 
doctorbillAuthor Commented:
perfect - thanks
0
 
doctorbillAuthor Commented:
solution
0
All Courses

From novice to tech pro — start learning today.