Insert data to database using loop that separated by comma

Codes here !

Moderators: egami, macek, gesf

Post Reply
Jazuly
New php-forum User
New php-forum User
Posts: 2
Joined: Sat Dec 09, 2017 3:58 am

Sat Dec 09, 2017 4:07 am

What is the simple way to insert data that separated by comma to database with loop?
For example i have a data like this:
$data = ''data1, data2, data3";

So in database the data will be like this
Field_data
Data1
Data2
Data3

User avatar
hyper
php-forum Fan User
php-forum Fan User
Posts: 761
Joined: Mon Feb 22, 2016 5:52 pm

Sat Dec 09, 2017 8:24 am


Jazuly
New php-forum User
New php-forum User
Posts: 2
Joined: Sat Dec 09, 2017 3:58 am

Sun Dec 10, 2017 8:47 am

Why not give me a simple code...
I know basic...

User avatar
hyper
php-forum Fan User
php-forum Fan User
Posts: 761
Joined: Mon Feb 22, 2016 5:52 pm

Sun Dec 10, 2017 9:38 am

I was under the impression you wanted some help, if you had said from the start that you wanted someone to spend a lot of time and effort asking more questions about what you wanted and then expecting them to write a script to do it, I could have ignored your post completely.

The simple way to do it is to learn it.

Post Reply