how to add number value in front for variable [closed]

Its Very simple you can implement like this

${variable_name}.another_varibale;

For Example

for($i=1;$i<10; $i++)
{
   ${total}.$i = 10+$i;
}

for(j=1;j<10;j++
{
    echo ${total}.$i;
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)