<? php
$ rsCat2 = $ db_oprations-> select_data ( 'Select * from real_estate where cat_id = 1' );
while ($ rowCat2 = mysql_fetch_array ($ rsCat2))
{
$ numrows = mysql_num_rows ($ rsCat2);
?>
<? = $ rowCat2 [ 'name' ]?> <br/>
<input name = 'commercial []' id = 'commercial []' type = 'checkbox' value = '<? = $ rowCat2 [' tid ']?>' /> <br/>
<input name = 'tot_commercial' type = 'hidden' value = '<? = $ numrows?>' />
<? php
}
?>
Source: https://habr.com/ru/post/39631/
All Articles