Cat,
Unfortunately, you haven't given us the "business" end of your script. Unless you can tell us where $db_status and $total_rows_returned comes from, it is unlikely that we will be able to help much.
Sean
----- Original Message ----- From: "Cat" <[EMAIL PROTECTED]>
To: <beginners-cgi@perl.org>
Sent: Monday, January 03, 2005 7:50 PM
Subject: Database Rows Returned
Hi folks,
I am hoping that I can get some help here.
When I search my database it comes back with the max rows and then prints a note to say that I need to refine my search. Yep you guessed it...someone elses script.
I don't understand the concept of what happens to create the code to have it present the remaining rows in linked pages. So I am asking for a little help....
local($db_status, $total_rows_returned) = @_; local($warn_message); $warn_message = "";
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. </BLOCKQUOTE></CENTER><P>!; } }
Hoping someone might be willing to assist.
Thanks in advance
Cat
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>