Insert data from form

QuestionsInsert data from form
Daniele asked 12 years ago

hello all,
I set the grid in the right way and visualize the data correctly according to my needs. Now I want to make a change, when I insert a new record in the data entry form some values ​​must already be defined, the field with value brand 'Apple' and so on. I enclose my code but I can not make it work well.

function add_scheda($data)
{
$id_user = $_SESSION['id_user'];

["marca"]}','{$data["params"]["modello"]}')");
mysql_query("INSERT INTO riparazioni VALUES (null, $id_user, 'MARCA', 'MODELLO')");
}

2 Answers
Daniele answered 12 years ago

I have solved!

Abu Ghufran answered 12 years ago

Good to know it's resolved.

Your Answer

14 + 3 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?