qSecondName($row['name'], null, 2))!=$row['nameCase']) // { // $t.= "{$row['name']}
"; // $t.= "". // implode('
', $nc->qSecondName($row['name'], null, 2)) // ."

"; // } $LastSymbol = mb_substr($row['name'], -1, 1, 'utf-8'); $TwoLast = mb_substr($row['name'], -2, 2, 'utf-8'); if($TwoLast=='ко' or in($LastSymbol, 'бвгджзйклмнпрстфхцчшщіь')) { $res=implode('#', array($row['name'],$row['name'],$row['name'],$row['name'],$row['name'],$row['name'],$row['name'])); mysql_query("UPDATE {$tablename} SET nameCase='{$res}' WHERE id={$row['id']}"); } } //$t=''; //$row = mysql_fetch_array($all); //$method = 'qFirstName'; //if($val=='father') //{ // $method = 'qFatherName'; //} //if($val=='second') //{ // $method = 'qSecondName'; //} //$res = implode('#', $nc->$method($row['name'], null, ($type=='girl' ? 2 : 1))); //mysql_query("UPDATE {$tablename} SET nameCase='{$res}' WHERE id={$id}"); ?>