I just can't figure out how to make the i-th variable in the loop.
for ( $i=1; $i<=3; $i++ ) { $Row = mysqli_fetch_assoc( mysqli_query($CONNECT, "SELECT * FROM `GGS_eq` WHERE `index` = '$_POST[search_index]' AND btn_no = '$i'") ); // если в таблице находим данный Индекс с нужной i-ой кнопкой, то: if ( $Row ) { $caller_title_btn_.$i = 'Кнопка: '.$Row['name']; } // если не находим, то: else { } } I need to assign $caller_title_btn_ (from 1 to 3). Neither can I figure out how to glue the temporary with $i .