include("/home2/thegaunt/www/common/bandheader-new.php"); include("/home2/thegaunt/www/adm/connectdb.php"); import_request_variables("gP", ""); if (is_numeric($bid)) { function band_name($t_id) { global $link; $sql = "SELECT band FROM bands WHERE bid = '$t_id'" ; $sql_result = mysql_query ($sql, $link ) or die ('request "Could not execute SQL query"'); $row = mysql_fetch_row( $sql_result ); return $row[0]; }; $sqlt = "UPDATE bands SET viewed=viewed+1 WHERE bid=$bid"; $result = mysql_query ($sqlt, $link ) or die ('request "Could not execute SQL query" '.$sqlt); $result = mysql_query( "SELECT * FROM tabs WHERE tid = '$tid' ", $link) or die ('request "Could not execute SQL query"'); while ( $row = mysql_fetch_object( $result ) ) { ?>
echo nl2br("$row->tab"); ?>
} ?>