Welcome Guest, Not a member yet? Register   Sign In
Help in inserting 2 data's in one column
#1

[eluser]Wondering Coder[/eluser]
Help guys, don't have any idea how to do achieve this. T_T

If I have like this:

Code:
<input type="text" name="myfield[]">//if I input Paragraph 1
<input type="text" name="myfield[]">//if I input Paragraph 2

What I want is when after I send this form it will save the data's in just one column in my table.

In my table
Code:
+  columnfield  +
Paragraph1 Paragraph2
#2

[eluser]kcmerrill[/eluser]
Are you referring to a database table? And you want to store the array with multiple values in one column in the database?

If so, you can use php function "serialize()";

Sorry if that's not what you're asking for.
-kc




Theme © iAndrew 2016 - Forum software by © MyBB