[]’sAté mais
- Luisjustin likes this
Male
Posted by Paulo Freitas
on 02/03/2010, 01:06
Posted by Paulo Freitas
on 01/03/2010, 15:27
REPAIR TABLE ... QUICK para reindexar a tabela.
Posted by Paulo Freitas
on 28/02/2010, 09:34
Posted by Paulo Freitas
on 27/02/2010, 20:48
Tenho meu sistema de busca usando FullText, porém ele elimina as palavras com menos de 3 caracteres
ft_min_word_len: http://dev.mysql.com...ft_min_word_len
Posted by Paulo Freitas
on 26/02/2010, 12:52
UPDATE `character` SET `level` = IF(`level` >10, `level` +30, IF(`level` >100, `level` +20, `level`)) WHERE `login` = 'fulano'PS: O uso dos backticks (``) neste caso é obrigatório, tanto character como level são palavras reservadas.
Posted by Paulo Freitas
on 22/02/2010, 21:44
Posted by Paulo Freitas
on 22/02/2010, 21:13
Posted by Paulo Freitas
on 22/02/2010, 19:50
Posted by Paulo Freitas
on 22/02/2010, 13:30
Posted by Paulo Freitas
on 22/02/2010, 03:00
WLM.png 106.59KB
6 downloadsAlt + M) e navegar na opção de inserção de assinatura, tal como exemplificado na imagem acima. No meu caso tanto o sistema como o WLM estão em inglês, mas o caminho é o mesmo para o português.
Posted by Paulo Freitas
on 17/02/2010, 16:59
usort():<?php
$key = 'nome';
// PHP 5.3+
usort($array, function ($prev, $next) {
global $key;
return strcmp($prev[$key], $next[$key]);
});
// PHP 5.0+
usort($array, create_function('$prev, $next', ' global $key;
return strcmp($prev[$key], $next[$key]);');Embaralhar já é mais complicado, eu acho...
Posted by Paulo Freitas
on 14/02/2010, 23:21
Posted by Paulo Freitas
on 13/02/2010, 03:21
Posted by Paulo Freitas
on 12/02/2010, 21:50
<?php
$imagens = array();
foreach (file($arquivo) as $linha) {
list($id, $imagem) = explode(' ', $linha);
if (!isset($imagens[$id])) {
$imagens[$id] = array();
}
$imagens[$id][] = $imagem;
}
// $imagens[20] = array de imagens com Id 20
// count($imagens[20]) = total de imagens com Id 20
?>[]sAté mais
Posted by Paulo Freitas
on 11/02/2010, 13:54
base não - não faz o menor sentido. Se isso funciona, ela também funciona.
Community Forum Software by IP.Board
Licensed to: Webmasters Online

Postagens