так:
dba_insert("1","<?php $table = mysqli_query($connect_russia, "SELECT * FROM $name_bd WHERE ( sales = '0' )"); $rowcount=mysqli_num_rows($table);$table = mysqli_fetch_all($table); if ($rowcount > 0) {echo '<tr><th colspan="11" class="razdel_rus_n">$lineyka</th></tr>';};foreach ($table as $table) {if ($table[10] > 0 and $table[9] == 0) { echo '<tr><td class="hat-1 pict"> <img src="img/' . $table[0] . '.jpg" alt=""> </td><td class="hat-2 name" data-id="'.$table[12].'">' . $table[1] . '</td><td class="hat-3 character">' . $table[2] . '</td><td class="hat-4 about">' . $table[11] . '</td><td class="opt ot10ru">' . $table[3] . '</td><td class="opt ot25ru">' . $table[4] . '</td><td class="opt ot50ru">' . $table[5] . '</td><td class="opt ot100ru">' . $table[6] . '</td><td class="opt ot250ru">' . $table[7] . '</td><td class="opt ot400ru">' . $table[8] . '</td><td><input type="number" placeholder="Кол-во" class="kolvo"></td></tr>';}}?>
",$site);
но он читает данные которые я хочу вставить как код
"вставить в файл" и функция dba_insert() как связаны?
Обсуждают сегодня