print $alb_name; ?>
>
Photos courtesy of print $attrib; ?>
print $descrip; ?>
Comments
include('../admin/connections.inc'); mysql_select_db($dbComments,$login);
$mySQL = "SELECT * FROM photos where item = '".$pointer."' ORDER BY datetime DESC";
$query = mysql_query($mySQL,$login); $result = mysql_num_rows($query);
if ($result == 0) { print "Be the first to post a comment.";
} else {
print "Add a comment ".$pName." ".$pTime." ".$pComment."
";
for ($i=1; $i<=$result; $i++) {
$row = mysql_fetch_array($query); $pName = stripslashes($row['name']); $pTime = $row['datetime']; $pComment = nl2br(stripslashes($row['comment'])); $pFlag = $row['flag'];
if ($pFlag != '1') {
print "