loops - 'if' inside 'while' statement in php -
I have this code that has a thinness through an array and removes the result on the page:
while ($ row = mysqli_fetch_array ($ result)) {resonant '& lt; Tr & gt; & Lt; Td> & Lt; A target = "_ blank" href = "'. $ Line [' url '].' '& Gt;'. $ Line ['name'] '& lt; / a & gt; & lt; / td & gt; ; ' . '& Lt; td & gt; . $ Line ['provider'] '& lt; / td & gt;' . '& Lt; td & gt; $ Line ['media'] "& lt; / Td> & Lt; / Tr & gt; & Lt; Br / & gt; \ N ";}
It just works fine, but I was hoping to use the 'if' statement on line $ ['media'] because some tap in it and There are some! Null results.
I want to resize a small reaction like this:
If ($ line ['media'] = null) {echo 'no'; } And {echo $ line ['media'];}
Is this possible in this situation?
Thanks.
Use:
if (is_null ($ line ['m Ia '])) {...} else {...}
Comments
Post a Comment