No database connection.:
\n"; print mysqli_connect_error(); exit; } mysqli_query($connection,"SET NAMES utf8"); /* get the adoption records */ $query = "SELECT * FROM dogs WHERE dog_status='ADOPTED!' ORDER BY dog_id DESC"; //print $query; if (($res = mysqli_query($connection,$query)) == false) { print "Database query failed.: "; print mysqli_error(); exit; } ?>

Adopted Hounds

\n"; print " \n"; print " \n"; print " \n"; print "

\n"; print " \n"; print " \n"; print " {$row['dog_name']}
\n"; print "
\n"; print "
\n"; print "

\n"; if ($row['dog_born'] != "") print " Born: {$row['dog_born']}
\n"; if ($row['dog_race_name'] != "") print " Race name: {$row['dog_race_name']}
\n"; if ($row['dog_color'] != "") print " Color: {$row['dog_color']}
\n"; if ($row['dog_gender'] != "") print " Gender: {$row['dog_gender']}
\n"; if ($row['dog_housing'] != "") print " Housing: {$row['dog_housing']}
\n"; if ($row['dog_cats'] != "") print " Cats: {$row['dog_cats']}
\n"; if ($row['dog_sml_dogs'] != "") print " Small Dogs: {$row['dog_sml_dogs']}
\n"; if ($row['dog_weight'] != "") print " Weight: {$row['dog_weight']}
\n"; if ($row['dog_status'] != "") { print " \n"; print " Status: {$row['dog_status']}
\n"; print "
\n"; } if ($row['dog_text'] != "") { $clean = stripslashes($row['dog_text']); print " {$clean}\n"; } print " \n"; print " \n"; print "
\n"; print "\n"; $cnt++; } print "
\n"; ?>

 

 

Start \n"; print "< \n"; if ($block == 1) print "Prev\n"; else { $mark = $block - 1; print "Prev \n"; } if ($block == 1) print "1 \n"; else print "\n"; for ($x = 2; $x < $nb; $x++) { if ($block == $x) print "{$x} \n"; else print "{$x} \n"; } if ($block == $nb) print "{$nb} \n"; else print "{$nb} \n"; if ($block == $nb) print "Next \n"; else { $mark = $block + 1; print "Next \n"; } print "> \n"; if ($block == $nb) print "End \n"; else print "End \n"; print ">>\n"; } ?>