Can you tell me why my IF don't work? I'm referring to this: if(!$row[12] == '');
In MySQL: $row[12] have value ''.
I was tring any method I know, but none work.
<?php
$nazwa = addSecurity($_GET['mod']);
$result = mysql_query("SELECT * FROM mods WHERE sytemname='$nazwa'");
while ($row = mysql_fetch_row($result)) {
if(!$row[12] == '');
{
echo '<div>' . $row[12] . '</div><hr style="width:99%;"/><div id="gallery">';
while($row1 = mysql_fetch_array($linijka))
{
$wyniki[] = $row1['images'];
}
foreach($wyniki as $wynik);
$images = explode(" ", $wynik);
foreach($images as $image)
{
echo '<a href="' . $image . '" rel="gallery" ><img src="' . $image . '"height="100px" /></a> ';
}
}
echo '</div><hr style="width:99%;"/>';
}
?>
Thanks for answers :)