View Single Post
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 04-30-2015 , 13:10   Re: Mysql columns in a loop
Reply With Quote #4

This will work too
PHP Code:
foreach ($row as $key=>$value){
    if (
preg_match("/^year_/"$key)){
        echo 
$value;
    }

__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-