
will
Membros-
Total de itens
107 -
Registro em
-
Última visita
Tudo que will postou
-
cod_compra int(11) Não auto_increment nome_prod varchar(120) Sim NULL valor int(11) Sim NULL midia varchar(10) Sim NULL id_temp varchar(60) Sim NULL form_pag varchar(20) Sim NULL status varchar(10) Sim não cod_usuario int(11) Sim NULL produto varchar(255) Não
-
sim .... mais com você pode ver na imagem quando tem varios produtos fica dificil de atualiza .... ou melhor eu só consigo atualizar o ultimo ... ScreenShot entende? [edited]a imagem estava muito grande, coloquei ela em um link[/edited]
-
<?php $texto = "vamosverissopodecrer"; $wtes = wordwrap( $texto, 8, "\n", 1); echo "$wtes\n"; ?> // vai sair assim vamosver issopode crer
-
Oi Error404, muito obrigado pela atenção .... Olha o q eu quero fazer é o seguinte ... eu estou criando um cesta de compras ... eu consigo adicionar e deletar mas quando eu tenho que atualiza a quantia de um produto não da certo ...
-
Oi Galera obrigado pela atenção de cada um ... Vou tentar ser mais claro .... Olha eu tem um banco de dados que é um tipo de cesta onde guarda algumas informações que são adiconadas .... onde tem os seguinte campos: { cod_compra = contem o dado onde mostra a indentificação de cada produto prod = o nome do produto quantia = a quantia de produtos temp = indentificação temporaria pag = forma de pagamento status = o estatus da compra } // esses dados acima é o banco de dados Agora vou falar sobre a pagina que mostra esses dados <?php require_once('Connections/pohs.php'); ?> <?php $colname_pq = "1"; if (isset($_GET['session'])) { $colname_pq = (get_magic_quotes_gpc()) ? $_GET['session'] : addslashes($_GET['session']); } mysql_select_db($database_pohs, $pohs); $query_pq = sprintf("SELECT * FROM compras WHERE id_temp = '%s'", $colname_pq); $porque = mysql_query($query_pq, $pohs) or die(mysql_error()); $row_pq = mysql_fetch_assoc($porque); $totalRows_pq = mysql_num_rows($porque); ?> <html> <head> <link rel="stylesheet" type="text/css" href="style.css"> <title>ops</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .prot {font-family: Tahoma} .style22 {font-family: Tahoma; font-size: 12px; } .style24 { color: #FFFFFF; font-weight: bold; font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 10px; } .style25 {font-family: Tahoma, Verdana, Arial, sans-serif} .style26 {font-size: 10px} .style27 {font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 10px; } --> </style> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="585" height="46" border="0" cellpadding="1" cellspacing="1"> <tr> <td width="3" rowspan="3"> </td> <td width="555"><img src="images/px1.gif" width="1" height="5"></td> </tr> <tr> <td><form action="<?php echo $editFormAction; ?>" method="POST" name="up" id="up"> <table width="575" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="575"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td>produtos</td> <td>código</td> <td>unidades</td> <td>subtotal</td> <td>total</td> <td>apagar</td> </tr> <?php do { ?> <tr> <td class="style25 style26"><?php echo $row_pq['nome_prod']; ?></td> <td class="style27"><input name="hiddenField" type="hidden" value="<?php echo $row_pq['cod_compra']; ?>"></td> <td class="style27"><input name="quantia" type="text" id="quantia" value="<?php echo $row_pq['quantia']; ?>" size="3" maxlength="3"> </td> <td class="style27"> </td> <td class="style27"> </td> <td class="style27"><span class="style25 style26"></span></td> </tr> <?php } while ($row_pq = mysql_fetch_assoc($porque)); ?> </table></td> </tr> <tr> <td> </td> </tr> </table> <input type="submit" name="Submit" value="atualizazr"> </form> </td> </tr> <tr> <td rowspan="2"><table width="574" border="0" cellspacing="0" cellpadding="0" bgcolor="#949494"> <tr> <td width="2" height="18"><img src="images/curvaVitrine1.gif" width="3" height="18"></td> <td height="18" width="16"><img src="images/setaVitrine.gif" width="12" height="13"></td> <td height="18" class="style3 normalBold"><span class="style24"> AINDA TEM + ! </span></td> <td width="2" height="18"><img src="images/curvaVitrine2.gif" width="3" height="18"></td> </tr> </table></td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> <td><span class="style22"> </span></td> </tr> <tr> <td> </td> <td><table width="574" border="0" cellspacing="0" cellpadding="0" bgcolor="#949494"> <tr> <td width="2" height="18"><img src="images/curvaVitrine1.gif" width="3" height="18"></td> <td height="18" width="16"><img src="images/setaVitrine.gif" width="12" height="13"></td> <td height="18" class="style3 normalBold"><span class="style24"> DESCRIÇÃO GERAL </span></td> <td width="2" height="18"><img src="images/curvaVitrine2.gif" width="3" height="18"></td> </tr> </table></td> </tr> <tr> <td> </td> <td><span class="style22"></span></td> </tr> </table> </body> </html> <?php mysql_free_result($porque); ?> // como todos podem ver exite um ( input type="text" ) que se repete de acordo com os dados ... ae quando eu quero atualizar esse ( input type="text" ) = quantia ele so atualiza o ultimo .... isso sabendo que existe algumas repetições .... eu tentei usar o Array mais não tive sucesso !
-
veja o codigo ae talvez você enteda melhor <?php do { ?> <tr> <td class="style25 style26"><?php echo $row_wcom['nome_prod']; ?></td> <td class="style27"><?php echo $row_wcom['produto']; ?> <? $uni = $row_wcom['midia']; $cad = $row_wcom['cod_compra']; if($_POST[opc_atualizar]){ $unidades = $_POST['unidades$uni']; mysql_select_db($database_pohs, $pohs); $query = sprintf("UPDATE compras SET cod_compra=$cad WHERE midia=$unidades"); $result = mysql_query($query) or die("aqui"); } ?> </td> <td class="style27"><input name="unidades<?php echo $row_wcom['cod_compra']; ?>" type="text" id="unidades<?php echo $row_wcom['cod_compra']; ?>" value="<?php echo $row_wcom['midia']; ?>" size="3" maxlength="3"> <input name="cod_compra<?php echo $row_wcom['cod_compra']; ?>" type="hidden" id="cod_compra2" value="<?php echo $row_wcom['cod_compra']; ?>"></td> <td class="style27"><?php echo $row_wcom['valor']; ?></td> <td class="style27"><?php $total = $row_wcom['midia']*ereg_replace(",",".",$row_wcom['valor']); echo number_format($total,2,',','.'); ?></td> <td class="style27"> </td> </tr> <?php } while ($row_wcom = mysql_fetch_assoc($wcom)); ?>
-
tipo olha eu tem um tabela onde temos dois campos no "id" e outro "quantia" #id # quantia #1 #5 #2 #1 #3 #6 mas que altera-la de uma vez .. saca
-
Oi pessoal gostaria de saber com eu posso atualizar um coluna em um banco de dados My sql só que em varia linhas ...
-
esta dando esse erro alguém pode me ajudar Warning: array_keys(): The first argument should be an array in C:\will\carrinho1\sis.php on line 40
-
muito obrigado eu vou testa qualquer coisa eu falo com vc
-
oi galera tem como eu pegar um codigo htm de uma pagina tipo • http://scriptbrasil.com.br/forum/index.php e mandar por email ? tipo a mensagem seria a pagina por email ????
-
<?php //isso porque eu estou testando na minha maquina que roda XP ini_set("SMTP","smtp.xxxxx.net"); $para="vc<will_gueto@hotmail.com>"; $from="eu<will@arraial.net>"; $subject="Já era hotmail.com"; $mime_boundary="==Multipart_Boundary_x".md5(mt_rand())."x"; $mente = "From: $from\r\n" . "MIME-Version: 1.0\r\n" . "Content-Type:multipart/alternative;\n" . " boundary=\"{$mime_boundary}\r\n\""; $mente.= "From: $from\r\n"; $message = "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type: text/plain; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 8bit\n\n" . "ppode". "HTML E-mail\n\nThis is the text portion of an HTML e-mail\n" . "--{$mime_boundary}\n" . "Content-Type: text/html; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 8bit\n\n" . "<html><h1>HTML E-mail Para o Hotmail</h1>" . "<p>Agora<b>HTML</b>Sim</p> Will Gueto e hotmail.com</html>"; // mandar agora $vamos = mail("$para","Já era hotmail.com",$message,"$mente"); if ($vamos) { echo "<p>foi ....!</p>"; } else { echo "<p>não ...!</p>"; } ?>
-
você quer mandar para vairas pessoas você pode umas entre os emails "," virgula ... sacou ?
-
você pode criar uma pagina onde você pegar só os dados e print... <script type="text/javascript" language=JavaScript><!-- function imprima() { if (window.print) window.print() else alert("O script não conseguiu envira o documento diretamente para impressão,nPressione Ctrl+P ou selecione Imprimir no menu Arquivo para imprimir esta página."); } // --></script>
-
tenta esse ae ini_set("SMTP","smtp.seuservi.net");
-
ae brother não deu certo ! mas obrigado mesmo assim
-
oi pessoal estou com um pequeno problema com o loop nas colunas da tabela tipo eu conseguir fazer deste jeito que você podem ver no codigo abaixo... mas eu gostataria que cada linha tive 3 colulas ... mas desse jeito ele só vai repedindo ... <table width="132" border="0" cellpadding="2" cellspacing="2"> <tr> <?php do { ?> <td width="124"><div align="center"> <table width="105" border="0" align="center" cellpadding="2" cellspacing="2"> <tr> <td width="116"><div align="center"><img src="produtos/<?php echo $row_pr['fot_peq']; ?>" width="80" height="80"></div></td> </tr> <tr> <td><div align="center"><span class="style5"><?php echo $row_pr['nome']; ?></span></div></td> </tr> <tr> <td><div align="center"><span class="style7"><?php echo $row_pr['desc']; ?></span></div></td> </tr> <tr> <td><div align="center"><span class="style9">R$<?php echo $row_pr['valor']; ?> ,00 </span></div></td> </tr> </table> </div></td> <?php } while ($row_pr = mysql_fetch_assoc($pr)); ?> </tr> </table> obrigado pela atenção
-
Ae Brother tenta assim if($_GET['action'] == "postread"){ certo ...?
-
Oi pessoal alguém sabe como eu posso manipular o som de um video isso eu estou importando para o flash .... Eu gostaria que o vide começa-se sem som nenhum.... eu tentei
-
geral mente tem um usuario root e não tem senha .. no caso a senha fica em branco
-
time (PHP 3, PHP 4 ) time -- Retorna o timestamp UNIX atual Descrição int time ( void ) Retorna a hora atual medida no número de segundos desde a Era Unix (January 1 1970 00:00:00 GMT). Veja também date() e microtime().