0){ // iterate through resultset for ($i=0; $i<$rows; $i++) { $row = pg_fetch_row($result, $i); echo "

$row[0]
"; echo " $row[1]

"; if ($row[3] <> "") { //echo "
"; echo "

"; // echo "Test."; echo "Click here to listen to a verse from this song sung by"; echo " $row[4].

"; echo " "; echo "

"; echo " Click the album to goto the site to purchase it.

"; //echo "
"; } echo $row[2]; } } else{ // if no records present // display message ?> I'm sorry, the song you are looking for was not found in our database.