i have made this script and its just not pulling the photo table to show it but only for 7 days from being added
<?php
mysql_connect("127.0.0.1", "#*$!xx", "#*$!#*$!") or die(mysql_error()) ;
mysql_select_db("member") or die(mysql_error()) ;
$sql = mysql_query("SELECT * FROM member WHERE DATE BETWEEN '".date('Y-m-d',strtotime('now'))."' AND '".date('Y-m-d',strtotime('-7 days'))."' ORDER BY ID DESC");
$result=mysql_query($sql);
?>
<?php
while($rows=mysql_fetch_array($result))
?>
[
#*$!#*$!xx...] echo $rows['photo']; ?>