Re: Large forms to Mysql table...
| From: | dino@php.co.ba | Date: | Sun, 14 Aug 2005 08:01:46 +0000 |
| Subject: | Re: Large forms to Mysql table... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-220591@lists.php.net to get a copy of this message | ||
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