If I use preg_match_all to get data, rather than use print_r to output this data I want to put it into mysql. How would I do this?
you mean you have preg matched certain data from particular text and wish to store these data in mysql tables.? do you know php - mysql integration? I'm not sure of your requirement so please share more details as to what exactly you wish to achieve.