чем ошибка?
public function getAccount(){
$domain = $this->db->query('SELECT * FROM domains_us WHERE count = ( SELECT MIN(count) FROM domains_us ) ORDER BY RAND() LIMIT 1');
while ( $rows = $domain->fetch_assoc() ) {
$new_count = intval($rows['count'])+1;
$this->db->query("UPDATE `domains_us` SET `count` = $new_count WHERE `domain` = `{$rows['domain']}`");
}
}
https://dev.mysql.com/doc/refman/5.7/en/string-literals.html
Обсуждают сегодня