Code: Select all
if ($row['commonName'] != "" && $row['latinName'] != "" && $row['thumbNail'] != "" && $row['image'] != "" && $row['partOfPlant'] != "" && $row['origin'] != "" && $row['family'] != "" && $row['aroma'] != "" && $row['description'] != "" && $row['generalProp'] != "" && $row['specificCond'] != "" && $row['emotionalWB'] != "" && $row['blendsWW'] != "" && $row['options'] != "" && $row['price'] != "") {what happens? this is part of a function I define inside of a whole file of functions. If this if statement is present, NONE of the functions work. They don't even give me any errors. The whole page... well... stalls. No output, nothing prints. error_reporting(E_ALL) told me nothing. The only reason I know that, amid a few hundred lines of other code, that its THIS line that does it, is because I commented it out. BAM, whole thing worked. (well, I did have to take care of the corresponding curly bracket '}' but other than that...)
So my question is: why does this not only not work, but screw up everything else?
I'm going to write this a different way, but I'm just interested as to why this happens. Thanks!