When I enter data to mysql it shows as below, I want to take all the data to a one row. but since I'm entering data using an array I only have access to two elements at once. So how can I enter data to a single line? below is a snip of my code
$array = array("AAPL","GOOG","YHOO","FB","MSFT","NKE","SBUX");
foreach ($array as $s) {
$sql = "INSERT INTO portfolio ({$s} , {$sss}) VALUES ('{$amount}', '{$value}')";
}