i want to use arrData array outside loop too, how to declare it outside loops scope, as if now it is not being populated correctly
$SQL = "SELECT * FROM DailyData WHERE User='$_SESSION[userID]'";
$result = mysql_query($SQL);
$i=0;
// trying this
$arrData= array();
$arrData []= array();
while($row = mysql_fetch_array($result))
{
echo $row['Score'] . " " . $row['Date'];
$arrData[i][1]=$row['Date'];
$arrData[i][2]=$row['Score'];
$i++;
echo "<br />";
}