Jump to content

Requesting help of inserting exploded data into sql database


metabee

Recommended Posts

Hello, I am facing problems of trying to insert exploded values into the database.

 

I always get this 000 0000-00-00 00:00:000 format

 

For example I type 100 2000-10-02 06:00:10 6 in the three textboxes,

 

100 -> textbox 1

2000-10-02 06:00:10 -> textbox 2

6 -> textbox 3

 

it still remain the same 000 0000-00-00 00:00:000.

 

I want to get this data 100|2000-10-02 06:00:10|6 in sql database.

 

Can anyone how make it to work?

1.zip

Link to comment
Share on other sites

Hello, I am facing problems of trying to insert exploded values into the database.

 

I always get this 000 0000-00-00 00:00:000 format

 

For example I type 100 2000-10-02 06:00:10 6 in the three textboxes,

 

100 -> textbox 1

2000-10-02 06:00:10 -> textbox 2

6 -> textbox 3

 

it still remain the same 000 0000-00-00 00:00:000.

 

I want to get this data 100|2000-10-02 06:00:10|6 in sql database.

 

Can anyone how make it to work?

 

you should use serialize() function to insert it into the database... when u get it back from db..use unserialize() function..

Hope it'll help u..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...