- function Show_Books(search_query) is priority medium distributed
- page = new page_builder
- if search_query.is_empty
- page.add_paragraph(internationalize(response("empty_search_query"))
- else
- database_connection.open_or_reuse(global_settings)
- database_connection.find_matching_records("book", search_query)
- if database_connection.has_results
- table = new html_table_builder
- database_connection.for_each_result as row
- table.add_row(row.substring(1, 30))
- end
- page.add(table)
- else
- page.add_paragraph(internationalize(response("sorry")))
- end
- database_connection.close
- end
- if time - old time > 0.5
- send_email(global_settings.admin_email, database_server.status,
- webserver.status)
- end
- end
Posted by Roger Browne on Mon 10 Dec 13:45
report abuse | View followups from test | download | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.