/ Published in: PHP
If the image source is not in the database a default image is displayed.
Expand |
Embed | Plain Text
//Retrieves data from MySQL $data = mysql_query("SELECT * FROM db*****") or die(mysql_error()); //Puts it into an array while($info = mysql_fetch_array( $data )) { ?> <div class="member"> <div class="imageSection"> <? if($info['photo'] == '') ?> </div> </div>
You need to login to post a comment.
