<?php include "mysqlconecta.php"; // Conecta ao banco de dados include "mysqlexecuta.php"; // Executa a cláusula SQL $id_lojista = 41; $id_categoria = 38; $sql = "SELECT p.id, p.nome, p.preco, p.estoque, cl.nome as nome_categoria FROM produtos_lojista as pl, produtos as p, categorias_lojista as cl WHERE cl.id = pl.id_categoria_lojista AND pl.id_lojista = $id_lojista AND p.id = pl.id_produto AND p.disponivel = 1 AND (cl.id = $id_categoria OR cl.id_pai = $id_categoria)"; $res = mysqlexecuta($id,$sql); ?> <body> <?php header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header ("Last-Modified: " . gmdate("D,d M YH:i:s") . " GMT"); header ("Cache-Control: no-cache, must-revalidate"); header ("Pragma: no-cache"); header ("Content-type: application/x-msexcel"); header ("Content-Disposition: attachment; filename=\"produtos.xls\"" ); header ("Content-Description: Gerado por Ademir Gabardo" ); ?> <table> <thead> <tr> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> <th> </th> </tr> </thead> <tbody> <tr> <td>Ação</td> <td>Código</td> <td>Título</td> <td>Descrição</td> <td>Caraterísticas Técnicas</td> <td>Subtitulo</td> <td>Preço Sincronizado</td> <td>Moeda</td> <td>Preço</td> <td>Disponibilidade</td> <td>Quantidade</td> <td>Moeda (ML)</td> <td>Preço (ML)</td> <td>Quantidade (ML)</td> <td>Estado (ML)</td> <td>Enviar produto</td> <td>Categoria</td> <td>Destaque</td> <td>Novidades</td> <td>Página principal</td> <td>Url Foto 1</td> <td>Url Foto 2</td> <td>Url Foto 3</td> <td>Url Foto 4</td> <td>Url Foto 5</td> <td>Url Foto 6</td> </tr> <?php while ($row = mysql_fetch_array($res)) { ?> <tr> <td>Criar</td> <td><?php echo $row['id']; ?></td> <td><?php echo $row['nome']; ?></td> <td><?php echo " " ?></td> <td><?php echo " " ?></td> <td><?php echo " " ?></td> <td><?php echo "Não" ?></td> <td><?php echo "REAL" ?></td> <td><?php echo $row['preco']; ?></td> <td><?php echo "Quantidade" ?></td> <td><?php echo $row['estoque']; ?></td> <td><?php echo " " ?></td> <td><?php echo " " ?></td> <td><?php echo " " ?></td> <td><?php echo " " ?></td> <td><?php echo "Não" ?></td> <td><?php echo $row['nome_categoria'];?></td> <td><?php echo " " ?></td> <td><?php echo " " ?></td> <td><?php echo " " ?></td> <td><?php echo " " ?></td> <td><?php echo " " ?></td> <td><?php echo " " ?></td> <td><?php echo " " ?></td> <td><?php echo " " ?></td> <td><?php echo " " ?></td> </tr> <?php } ?> </tbody> </table>
- Fórum WMO
- → Viewing Profile: Tópicos: Fabricio Calvete Campos
Community Stats
- Group Usuários
- Active Posts 32
- Profile Views 1136
- Member Title Turista
- Age Age Unknown
- Birthday Birthday Unknown
-
Sexo
Não informado
0
Neutral
User Tools
Friends
Fabricio Calvete Campos hasn't added any friends yet.
Latest Visitors
Topics I've Started
Planilha Mercadoshop
20/12/2012, 18:30
Estou tentando criar uma planilha para exportar para o Mercado Shop e simplesmente eu crio corretamente e chega na hora não exporta e também não manda nenhuma mensagem do que poderia ser o erro alguém já passou por isto?
Abrir Planilha Do Excel No Servidor
19/12/2012, 21:01
Boa noite a todos, estou com o seguinte problema, tenho uma planilha pronta que eu preciso fazer um script em php que salve ela no servidor com outro nome e inclua informações, infelizmente nunca fiz isto existe alquém que pode me dar o caminha das pedras?
Obrigado
Obrigado
Radphp Erro Na Hospedagem
27/03/2012, 14:36
Comprei o RADPHP XE a algum tempo e não usei porque peguei um projeto para trabalhar somente no SQL Server terminei este projeto nesta semana e resolvi ressucitar dos mortos e RAD tudo maravilhoso na máquina ficou muito rápido e perfeito o sistema que fiz mas quando fui jogar para o meu servidor não teve jeito começou a dar erro eu gostaria de saber se alguém já teve este erro e se pode me ajudar.
Warning: require_once(rpcl/adodb/adodb.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/calveteinformatica/www/testetemp/bd/rpcl/rpcl.inc.php on line 161
Fatal error: require_once() [function.require]: Failed opening required 'rpcl/adodb/adodb.inc.php' (include_path='.:/usr/local/lib/php') in /home/calveteinformatica/www/testetemp/bd/rpcl/rpcl.inc.php o seguinte:
Na linha em questão esta a seguinte função, já fiz diversas mudanças e nada:
Warning: require_once(rpcl/adodb/adodb.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/calveteinformatica/www/testetemp/bd/rpcl/rpcl.inc.php on line 161
Fatal error: require_once() [function.require]: Failed opening required 'rpcl/adodb/adodb.inc.php' (include_path='.:/usr/local/lib/php') in /home/calveteinformatica/www/testetemp/bd/rpcl/rpcl.inc.php o seguinte:
Na linha em questão esta a seguinte função, já fiz diversas mudanças e nada:
/** * Includes an RPCL unit * * This function uses the RPCL path to include a unit that resides on the RPCL folder, so you don't have to worry * about RPCL library location if you use this function. Included units are included require_once so you will get an * error if required units doesn't exists and double inclusions won't be performed. * * <code> * <?php * use_unit("controls.inc.php"); * use_unit("subpath/myfunctions.inc.php"); * ?> * </code> * * @link http://www.php.net/manual/en/function.require-once.php * * @param string $path Relative to RPCL root path * */ function use_unit($path) { $apath=RPCL_FS_PATH; if ($apath!="") $apath.="/"; require_once($apath.$path); } global $startup_functions; $startup_functions=array();
Aula Estilo Powerpoint
30/12/2011, 22:40
Boa noite a todos, sabe aqueles dias que você tem o projeto e não consegue saber como começar? Hoje é um deles para mim, estou precisando fazer um sisteminha de aula em php onde o aluno se inscreve e ve a aula estilo powerpoint e quando parar e o aluno voltar ele mostrará onde parou... me parece tão simples mas por incrivel que pareça não consegue sair uma linha de programação, se alguém poder me ajudar agradeço.
- Fórum WMO
- → Viewing Profile: Tópicos: Fabricio Calvete Campos
- Privacy Policy
- Regras ·