Re: Multiline data Insert Into table from a generated form?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[snip]
>  //user connection section--begin
>  $username="root";
>  $password="";
>  $database="nazardane";
[/snip]

If this is actually your login, I would suggest changing it right away

[snip]
>  while ($c=0;$c<count($_POST['tourid']):$c++)
[/snip]

Like Mike already said, that should be a for loop.  But, you do have
one other option, that I prefer...A foreach loop.

foreach($_POST['tourid'] AS $tour_id {
... now in your code use $tour_id instead of $_POST['tourid'][$c]
}

-Chris

ps...You may want to read through the php turorial again.  Lots of 
helpful information there.  http://us2.php.net/tut.php
-- 
Christopher Fulton
http://www.fultonfam.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux