Forum Moderators: coopster
$hrow = mysql_fetch_array(mysql_query("SELECT * FROM Members WHERE MemberID='$hID'"));
$f = $hrow['FeatureIMG'];
$nullrow = mysql_fetch_array(mysql_query("SELECT * FROM Media WHERE MemberID='$hID'"));
if (is_null($nullrow['MediaID']) !== false)
echo "This space is null, and thus, does not show the else statement!";
else
$irow = mysql_fetch_array(mysql_query("SELECT * FROM Media WHERE MediaID='$f'"));
$t = $irow['Title'];
echo "<h3 class=\"heroes\" id=\"title\">";
echo "Featured Image: <a href=\"/gallery/sngl_img.php?MediaID=" . $f . "\">" . $t . "</a>";
echo "</h3>";
echo "<div class=\"img-holder\" align=\"center\">";
echo "<img class=\"the-image\" src=\"http://mysite.com/largeimages/" . $f . "_lg.jpg\" />";
echo "</div>";
But for some reason, when I enter this, It displays both the if command (This space is null, and thus, does not show the else statement!) and then immediatly afterward, it shows the else statement. So I know both are getting through, but why is it displaying the else statement?
thanks! it fixed it right up.
as for the JOIN thing. I don't quite know what that is, but I'll do some research, sounds like it'd save me time. This is my first php website, so I'm mostly just using whatever code works, and not necessarily the best code for the job.
And, as for these specific values, they're empty strings, not NULL values.
Thanks so much for the quick reply!
BTW, welcome to WebmasterWorld, Gahein.