UPDATE gvnews, gvnews_img SET gvnews.campo = 'atualiza', gvnews_img.campo = 'atualiza' WHERE gvnews.id = gvnews_img.id_gvnews
Dê uma olhada no manual... http://dev.mysql.com.../en/update.html
- Lau likes this
Posted by '' sem.Ponto on 22/02/2010, 22:24
UPDATE gvnews, gvnews_img SET gvnews.campo = 'atualiza', gvnews_img.campo = 'atualiza' WHERE gvnews.id = gvnews_img.id_gvnews
Posted by '' sem.Ponto on 11/02/2010, 16:41
<?php $number = 254789; echo number_format($number, 0, '', '.'); ?>
Posted by '' sem.Ponto on 10/02/2010, 22:31
Posted by '' sem.Ponto on 09/02/2010, 23:38
$mensagem2 .= "<p><a href=\"http://www.site.com.br/\" title=\"Visite nosso site e conheça nossos planos\" target=\"_blank\">Acesse</a></p>";
$mensagem2 .= '<p><a href="http://www.site.com.br/" title="Visite nosso site e conheça nossos planos" target="_blank">Acesse</a></p>';
Posted by '' sem.Ponto on 07/02/2010, 21:43
<?php /** * removeSpaceSurplus() * * @author Muller Dias <mullerdias (at) gmail.com> * @version 20100207 * @param string $str - parâmetro com a string que será tratada * @return string com os espaços excedentes removidos */ function removeSpaceSurplus($str) { return preg_replace("/\s+/", ' ', trim($str)); } ?>
<?php echo removeSpaceSurplus(" essa string tem muitos espaços "); // essa string tem muitos espaços echo removeSpaceSurplus(" essa string tem \n\n espaços e \n quebras \n"); // essa string tem espaços e quebras ?>
Posted by '' sem.Ponto on 14/01/2010, 20:49
$_GET['pagina'] = $url_array[0]; // noticias $_GET['id'] = $url_array[1]; // 17
Posted by '' sem.Ponto on 14/01/2010, 14:20
echo '<input type="text" name="email[]">';
$_POST['email']
será um array. Todos os e-mails estarão nele, você pode fazer um foreach
, um implode()
, você decide...Posted by '' sem.Ponto on 08/01/2010, 17:02
$tipo_habi = $_POST['habilitacao'] ? implode(",", $_POST['habilitacao']) : NULL;
Posted by '' sem.Ponto on 04/01/2010, 14:10
<input type="checkbox" name="habA" value="A"<?php if ($habA=='A') echo ' checked="checked"'; ?> /> <input type="checkbox" name="habB" value="B"<?php if ($habB=='B') echo ' checked="checked"'; ?> />
Posted by '' sem.Ponto on 03/01/2010, 17:09
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
Posted by '' sem.Ponto on 03/01/2010, 01:36
<input type="radio" name="sexo" value="M"<?php if ($sexo=='M') echo ' checked="checked"'; ?> /> <input type="radio" name="sexo" value="F"<?php if ($sexo=='F') echo ' checked="checked"'; ?> />
Posted by '' sem.Ponto on 31/12/2009, 23:12
Posted by '' sem.Ponto on 31/12/2009, 13:03
SELECT STR_TO_DATE('16/12/2009','%d/%m/%Y')
Posted by '' sem.Ponto on 19/12/2009, 12:32
$rows = file("arquivo.txt"); shuffle($rows); echo $row[0];
Posted by '' sem.Ponto on 16/12/2009, 21:19
$news_de_hoje = "<b>".$dados[DATA]." - ".$nome_categoria." - ".$dados[hora]." hrs<br></b>".$dados[titulo]."<br><br>";
$a = "Bom "; $a = "dia!"; echo $a;
$a = "Bom "; $a .= "dia!" echo $a;
Community Forum Software by IP.Board
Licensed to: Webmasters Online