Need to manage a text field with separate values ;

Asked

Viewed 57 times

-2

I need to insert, edit, delete a text field in this format:

11 2222-3333;11 3333-4444;11 5555-6666;11 7777-8888

In case I need a zebrad grid that lists the data and on each line has this information in this format:

Insert

telefone            acoes
11 2222-3333   editar | apagar
11 3333-4444   editar | apagar
11 5555-6666   editar | apagar
11 7777-8888   editar | apagar

However, after inserting, editing or deleting, keep the format in the text field Mysql.

  • 1

    The question sounds a lot like "Write the code for me from scratch (and free)". Zero Cool’s answer seems quite appropriate: simply a generic indication (for a generic question).

1 answer

1

  • To break the initial string use the explode as Harry Potter responded by adding a string with link inside the echo in the foreach

  • have some example of this working

Browser other questions tagged

You are not signed in. Login or sign up in order to post.