Example:
$words = 'word1,word2,word3';
Ouput:
id value1 value2 value3
--- ------ ------ -------
1 word1 word2 word3
I want the data to be inserted in a single row but in different columns
This is what I have tried so far:
$data = '"1","1","8009","8989"';
$stmt = odbc_prepare($con," INSERT INTO stock( SiteId, DatabaseId, Code, Category) VALUES(?,?,?,?)");
$success = odbc_execute($stmt,array($data) );
odbc_close($con);