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

$query=("INSERT INTO the_array($CMY, model) 

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

Recommended Answers

All 2 Replies

$sql="INSERT INTO tablename(db_field1, db_field2)


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, learning, and sharing knowledge.