Hi everybody
I am very new to PHP and MYSQL
How can I implement :

$q=$_GET["q"]; 
$CMY=$get["CMY"];
...
$query=("INSERT INTO the_array($CMY, model) 
                          VALUES('$q','dddd')");

$q and $CMY are results I get from AJAX, and I think the only way to save the results
is using the DB.

$Name=$_GET["name"];
$Email=$_GET["email"];
...
$sql="INSERT INTO tablename(db_field1, db_field2)
                              VALUES('$Name','$Email');

mysql_qyery($sql)

This is the most simplest way to insert data into database.

Thank you Kamran.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.