Recently, the leadership assigned a task, the draw after the relevant data into the database, but PHP I am a beginner, do not know how to cooperate with the front desk
Let me simplify, basically this is the meaning of the database to insert ID and phone
var submitdata = {
tid:888,
Tel:tel,
Action: "Settel"
};
$.post (KKK.PHP?AA=CCC, submitdata,function)
How should I write the data in kkk.php? Assuming the database name is a, there are two fields called ID and Tel
Thank you!
Reply to discussion (solution)
$sql = "INSERT into A (ID, tel) values (' $_post[id] ', ' $_post[tel] ')");
Haha, I try, originally directly can $_post come over?
It's better to take a value or $_request.
3L What do you mean, I haven't tried, can you say something specific?
It is possible to use the INSERT statement directly when the parameter can be filtered directly using the $_post['] value.