Re: V basic newbie problem
| From: | Julie Meloni | Date: | Wed, 03 Jul 2002 14:52:04 +0000 |
| Subject: | Re: V basic newbie problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-105207@lists.php.net to get a copy of this message | ||
DE> I'm not sure if this is the right place for this but I'm just starting out
DE> My problem arises when I want to fill in the subsequent rows of the table
DE> with the subesquent rows from the database. How do I create the recordset
DE> that will pull the info from the relevant subsequent rows for my columns?
Depending on your SQL query, and assuming that you have checked for
more than one row before coding accordingly, then the answer is to
loop through your results using a combination of while and the
mysql_fetch_array function. (or another mysql result function of
your choice).
That being said, without having seen your PHP code, we can't really
tell you what exactly to do. This is a problem when using editors that
"help" you to code.
The basic concepts for accessing MySQL and retrieving records are all
in the mysql area of the manual, or in tutorials abound.
(including here: http://www.thickbook.com/extra/php_mysql.phtml)
- Julie
--> Julie Meloni
--> julie@thickbook.com
--> www.thickbook.com
Find "Sams Teach Yourself MySQL in 24 Hours" at
http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20