$tech = mysql_query("SELECT SUM(`rt`.`sum`) ".
" FROM `tech` AS `t` ".
" INNER JOIN `remont_tech` AS `rt` ON `t`.`id` = `rt`.`tech_id` ".
" WHERE `t`.`tech_cat` = '".mysql_real_escape_string($cat_id)."' ".
" AND `t`.`status` = 'normal'");
if ($techs = mysql_fetch_array($tech))
$summa = $techs[0];
2 3
0 0
1 1
1 2
print ("%d %d" %(x2, y2))
if (isset($_POST['text']) && $_POST['text'] != '') {
$stmt = $mysqli->prepare("INSERT INTO `item` (`text`, `first`) VALUES (?, ?)");
$stmt->bind_param("si", $item, $first);
$arr=explode('\n', $text);
$first = 1;
foreach ($arr AS $item) {
$stmt->execute();
$first = 0;
}
}
However, there will always be uses that are challenging to categorize as commercial or noncommercial. CC cannot advise you on what is and is not commercial use. If you are unsure, you should either contact the rights holder for clarification, or search for works that permit commercial uses.