Re: hard to explian

From: Date: Fri, 04 Aug 2000 14:34:36 +0000
Subject: Re: hard to explian
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-10137@lists.php.net to get a copy of this message
http://px.sklar.com/section.html?section_id=4 http://www.zend.com/codex.php http://wwits.net/programs/ http://php.net/quickref.php (the mysql functions) to calculate the number of rows you would us the mysql_num_rows then query the database again using the mysql limit option you'll also need to review the mysql docs. This info should get you started. Ken Mark Lo wrote: > > Hi, > > Is there anyone can give me an idea of how to write a script. This script will do the > following fucnctions. > 1.. It counts how many rows in the databases, if there are 1000 rows in the database. > 2.. Then, the total number of rows which is 1000 then divided by 50 which comes out a result > of 20. > 3.. Fianlly, this script will automatically assign twenty values in a combo box such as > "first 50's", "second 50's"....and till the "last > 50's". > 4.. But the major point is that we do not know how many rows will be in the database. if > there are 44 rows in the database, then the values in a combo box should be only the "first > 50's". > Please give me an idea of how to write such program(script). > > Thanks in advance > > Mark Lo

« previous php.general (#10137) next »