Forum Moderators: coopster
My question is: Is it possible to load a page dynamically based on what information is stored in the database. For example if no picture is in a picture field it won't load the picture at all. This way I can store different information in the database for each item and still have it looking good when it loads up.
$row[](an array), and when you're outputting what you're outputting,
if(!empty($row['pic1'])){
echo '<img src="'.$row['pic1'].'" alt="">';
} else {
/* do either nothing, or whatever you want to do if there isn't any image here */
} Actually, this is a good 'basic' question since I've seen so many sites that deliver broken images when the images run out, or keep on outputting the field names when these fields are blank, returning lots of worthless and potentially distracting info.