Ir ao conteúdo
  • Cadastre-se

Pedro Eduardo Dorneles

Membro Júnior
  • Posts

    1
  • Cadastrado em

  • Última visita

Reputação

0
  1. ola galera Estou com o Seguinte problem espero que me ajudem a resolver agradeço desde ja! Aviso : mysql_select_db () espera o parametro 2 Para Ser recurso, dado nulo em /home/millaace/public_html/oculos.php na Linha 60 Aviso : mysql_query () espera o parametro 2 Para Ser recurso, null em dada / home / millaace / public_html / oculos.php na Linha 62 <? Php require_once ('Ligações / conexao.php'); ?><? Php $ String = 'WHERE valor ENTRE 0 AND 1000'; @ $ Valor = $ _ POST ['valor']; switch ($ valor) { caso '1000'; $ String = 'WHERE valor <1000'; $ Msg = "Até R $ 1.000,00"; parar; caso "2000"; $ String = 'WHERE valor ENTRE 1001 AND 2000'; $ Msg = "R $ 1.001,00 Até R $ 2.000,00"; parar; caso '3000'; $ String = 'WHERE valor ENTRE 2001 AND 3000'; $ Msg = "R $ 2.001,00 3.000,00 á"; parar; caso '4000'; $ String = 'WHERE valor> 3001 »; $ Msg = "Acima de R $ 3.001,00"; parar; caso ''; $ String = ""; $ Msg = ""; parar; }?><? Phpif (! function_exists ("GetSQLValueString")) {GetSQLValueString função ($ theValue, $ theType, theDefinedValue $ = "", $ theNotDefinedValue = "") { if (php_version <6) { $ TheValue = get_magic_quotes_gpc ()? stripslashes ($): $ TheValue theValue; } $ TheValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($ theValue): mysql_escape_string ($ theValue); switch ($ theType) { caso "text": TheValue $ = ($ theValue! = "")? "'". $ TheValue. "'": "NULO"; parar; caso "longo": caso "int": TheValue $ = ($ theValue! = "")? intval ($ theValue): "NULL"; parar; caso "double": TheValue $ = ($ theValue! = "")? doubleval ($ theValue): "NULL"; parar; caso "data": TheValue $ = ($ theValue! = "")? "'". $ TheValue. "'": "NULO"; parar; caso "definido": TheValue $ = ($ theValue! = "")? TheDefinedValue $: $ theNotDefinedValue; parar; } return $ theValue;}}mysql_select_db ($ database_conexao, $ conexao);$ Query_Recordset1 = "SELECT marca, PRODUTO, descricao, valentia, caminho_foto, foto DE Produtos";$ Recordset1 = mysql_query ($ query_Recordset1, $ conexao) or die (mysql_error ());$ Row_Recordset1 = mysql_fetch_assoc ($ Recordset1);$ TotalRows_Recordset1 = mysql_num_rows ($ Recordset1);?><! Doctype html><Html><Head><Meta charset = "utf-8"><Title> Documento sem título </ title> <Link rel = href "stylesheet" = "estilos-menu.css"> <Style type = "text / css"> #geral { padding: 0px; margin-left: 10%; margin-right: 10%; } #rodape { text-align: center; background-color: # CCCCCC; } #conteudo { width: 960px; display: block; margin: 25px auto; padding: 15px; background-color: #ebebeb; position: relative; font-family: "Gill Sans", "Gill Sans MT", "Pro Myriad", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif; } #conteudo h1 { font-size: 18px; color: # 333333; display: block; border-bottom: 3px casal # 999999; padding-bottom: 5px;} </ Style></ Head><Body><Div id = "geral"> <Div id = "topo"> <Table width = "100%" border = "0"> <Tbody> <Tr> <Td width = "20%"> & nbsp; </ td> <Td width = "60%"> <img src = largura "imagem / milla_logo.jpg" = "100%" height = "200" alt = "" /> </ td> <Td width = "20%"> & nbsp; </ td> </ Tr> </ Tbody> </ Table> </ Div> <Div id = "cssmenu"> <ul> <Li class = "ativo"> ​​<a href='index.php'> Início </a> </ li> <Li> <a href='oculos.php'> Óculos </a> </ li> <Li> <a href='relogio.php'> Relógio </a> </ li> <Li> <a href='bolsas.php'> Bolsas </a> </ li> <Li> <a href='contato.php'> Contato </a> </ li></ Ul> </ div> <Div id = "conteudo"> <H1> BEM VINDOS AO NOSSO NOVO SITE <? Php require_once ('Ligações / conexao.php').?; ?></ H1> <Div class = "menu_pesquisa"> <Form name = ação "formCombo" = "" method = "post" enctype = "multipart / form-data"> <Select name = "valor"> <Option value = ""> Selecione hum valor </ option> <Option value = "100"> Até 100,00 reais </ option> <Option value = "200"> De Até 100,00 200,00 reais </ option> <Option value = "300"> De Até 200,00 300,00 reais </ option> <Option value = "400"> De Até 300,00 400,00 reais </ option> </ Select> & Nbsp; & nbsp; & nbsp; <Input type = "submit" name = "botao" value = "Filtrar" /> </ Form> </ Div> <Table cellpadding = "8" cellspacing = fronteira "10" = "0" width = "100%"> <Tr> <? Php $ Loop = 3; $ Select = "SELECT * FROM Produtos $ string"; $ Qr = mysql_query ($ select); $ I = 1; while ($ ln = mysql_fetch_array ($ qr)) { if ($ i <$ circular) {?> <Td valign = "top" align = "center" bgcolor = "f4f4f4"> <a href="detalhe.php?id=<?php eco $ln['id']?> "> <? Php echo" < img src = 'Imagem /".$ ln [' foto ']. "' = width '250' />"; ?> </a> <br/> ? <Strong> <? Php echo $ ln ['PRODUTO']; ?> </ Strong> <br/> <br> </ Td> <? Php} elseif ($ i = $ circular) {?> <Td valign = "top" align = "center" bgcolor = "f4f4f4"> <a href="detalhe.php?id=<?php eco $ln['id']?> "> <? Php echo" < img src = 'Imagem /".$ ln [' foto ']. "' = width '250' />"; ?> </a> <br/> ? <Strong> <? Php echo $ ln ['PRODUTO']; ?> </ Strong> <br/> <br> </ Td> </ tr> <Tr> <? Php $ I = 0; } $ I ++; } ?> </ Tr> </ Table> </ Div> <div id = "rodapé"> em Todos direitos reservados - Milla Acessorios & # 8482; - PED Designer </ div></ Div></ Body></ Html><? Phpmysql_free_result ($ Recordset1);?>

Sobre o Clube do Hardware

No ar desde 1996, o Clube do Hardware é uma das maiores, mais antigas e mais respeitadas comunidades sobre tecnologia do Brasil. Leia mais

Direitos autorais

Não permitimos a cópia ou reprodução do conteúdo do nosso site, fórum, newsletters e redes sociais, mesmo citando-se a fonte. Leia mais

×
×
  • Criar novo...