Re: php - posting multiple items
by Satya <satyap(at)satya.virtualave.net>
|
| Date: |
Mon, 22 Oct 2001 22:16:33 +0530 (IST) |
| To: |
hwg-languages(at)hwg.org |
| In-Reply-To: |
webgraffix |
| |
todo: View
Thread,
Original
|
|
On Oct 22, 2001 at 23:22, WebGraffix Internet Design and Consulting wrote:
>Let's say I want to post several rows of items at once into an existing MySQL
>table.
Have your insert statement with variables and iterate over it with a
for loop. Pseudocode:
for(i=1;i<-6;i++) {
mysql("insert into table values(".col1[i].",".col2[i].")");
}
Trim the quotes, willya?!
--
Satya. <URL:http://satya.virtualave.net/>
Computers are not intelligent. They only think they are.
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.