I noticed there was a more relevant section for me to post so adding my question here.
I'm parsing an HTML page and I receive the correct data I want inside $numbers (code below) but when I go to insert into my sql table I'm not sure I'm going about it correctly. Maybe I'm saving the data incorrectly. I have a 50 rows in my table and 50 entries in $numbers I want to transfer. Any thoughts on my code?
$html = file_get_html($url);
foreach($html->find('span[id*=numbers]') as $key => $info)
{ echo ($key + 1).'. '.$info->plaintext."<br />\n";
$numbers[$key+1]=$info; }
$sql="INSERT INTO numbersdata VALUES ('$numbers')";
$result = mysql_query($sql);
//I'm connected to my DB already