I'm using this PDO query to fetch all the data I need from Value and dateid:
$pdo = new PDO('mysql:host=localhost;dbname=contisec_portal', 'root', '');
$date = date("o-m-d");
$stmt = $pdo->query("SELECT stock_names.Value,stock_names.Fileid,date_header.dateid FROM stock_names,date_header WHERE SEDOL = '$stocksel' AND date_header.fileid = stock_names.FileID");
Does anybody know how I can sort the two columns into their own arrays (i.e. $valuearray and $dateidarray)?
Many Thanks,
Ed