##-- web_store.cgi changes (in sub create_html_page_from_db)--## ###- old lines -### ($status,$total_row_count) = &submit_query(*database_rows); ###- new lines -### ($status,$total_row_count) = &submit_query(*database_rows, $form_data{'hits_seen'}); $hits_seen = $form_data{'hits_seen'} + $sc_db_max_rows_returned; ##-- end of web_store.cgi changes --## _______________________________________________________ ##-- web_store_db_lib.pl changes (in sub submit_query)--## ###- old lines -### sub submit_query { local(*database_rows) = @_; ###- new lines -### sub submit_query { local(*database_rows, $hits_seen) = @_; ###- old lines -### while(($line = <DATAFILE> ) && ($row_count < $sc_db_max_rows_returned + 1)) ###- new lines -### while(($line = <DATAFILE> ) && ($row_count > -1)) ###- old lines -### if (($not_found == 0) && ($row_count <= $sc_db_max_rows_returned)) ###- new lines -### $adjusted_line_number = $sc_db_max_rows_returned + $hits_seen - 1; if (($not_found == 0) && ($row_count <= $adjusted_line_number) && $row_count >= $hits_seen) ##-- end of web_store_db_lib.pl changes --## _________________________________________________________ ##-- web_store_html_lib.pl changes (in sub product_page_footer) --## ###- look for and add/change/move lines with <*> markers -### local($db_status, $total_rows_returned) = @_; local($warn_message); <*> $warn_message = ""; <*> CHANGE TO.... <*>$warn_message = qq!

1 - $total_rows_returned of $total_rows_returned

!; <*> ....THIS <*> local($next_amount); <*> ADD THIS <*> $next_amount = $sc_db_max_rows_returned; <*> ADD THIS <*> local($hidden_fields) = &make_hidden_fields; <*> ADD THIS ###- end of look/add/change/move lines -### ###- old lines -### if ($db_status ne "") { if ($db_status =~ /max.*row.*exceed.*/i) { $warn_message = qq! <CENTER> <BLOCKQUOTE> Your query returned $total_rows_returned. This is more than the maximum we allow ($sc_db_max_rows_returned). You will need to restrict your query further. <P>!; } } ###- new lines -### if ($hits_seen > 0) { if ($hits_seen > $sc_db_max_rows_returned) { $hits_prev = $hits_seen - $sc_db_max_rows_returned - $sc_db_max_rows_returned; $hits_start = $hits_seen - $sc_db_max_rows_returned + 1; $warn_message = qq!
$hits_start - $total_rows_returned of $total_rows_returned
$hidden_fields
!; } if ($total_rows_returned >= $hits_seen) { $hits_prev = $hits_seen - $sc_db_max_rows_returned - $sc_db_max_rows_returned; $hits_start = $hits_seen - $sc_db_max_rows_returned + 1; if (($total_rows_returned - $hits_seen) < $sc_db_max_rows_returned) { $next_amount = $total_rows_returned - $hits_seen; } $warn_message = qq!
$hits_start - $hits_seen of $total_rows_returned
!; if ($hits_prev > -1) { $warn_message .= qq! !; } # end if $hits_prev $warn_message .= qq!
$hidden_fields
$hidden_fields
!; } # end if $total_rows_returned } # end if ($hits_seen > 0) ###- look for and add/change/move lines with <*> markers -### print qq~ $sc_product_display_footer

<*> $warn_message <*> MOVE FROM HERE....

$sc_no_frames_button <*> $warn_message <*> ....TO HERE
~; } ###- end of look/add/change/move lines -### ##-- end of web_store_html_lib.pl --#