Re: Large forms to Mysql table...

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

 



Just use some text as "delimiter string". Merge all fields together with delimiter and than insert it into db table.

Something like

<?php
$separator_string = '||__||';//or something else


//u can use foreach($_POST..) here or merge all one by one

$tekst=$separator_string.$_POST['field1'].$separator_string.$_POST['field1']....

//than insert it into db

?>

<?php
//mysql connect & select query
$separator_string = '||__||';
while ($a=mysql_fetch_row($query))
$myfields= split($separator_string,$a[2]);
?>

Hope this could help

--
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