..:: MX Studio Fóruns ::..: erro nesse script de revenda de carros - ..:: MX Studio Fóruns ::..

Jump to content

Publicidade




ATENÇÃO

Para evitar posts desnecessários e que não influam para o andamento e desenvolvimento do fórum, clique aqui e leia todas as regras.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

erro nesse script de revenda de carros instalei mais ainda ta dando erro em algumas paginas

#1 User is offline   farreando 

  • Group: Membros
  • Posts: 1
  • Joined: 20-March 07

  Posted 20 March 2007 - 02:54 PM

olá pessoal,
estou começando agora no php, e não saco de nenhuma outra progrmação... hehehehe

estou tentando montar um site e queria usar um script que neste link http://www.phpbrasil.com/scripts/script.php/id/2589

no entanto estou com problemas em algumas páginas. e axo que o erro é o mesmo em todas as páginas:
www.icarros.net/mais.php
www.icarros.net/mais2.php
www.icarros.net/mais_noticias.php

a página MAIS.PHP que é uma das que esta dando erro, o erros estão nas linhas 9, 10, 11, 12, 61, 67, 73, 79, 85, 91, 97, 103:

CODE
<?
  @INCLUDE ("includes/barracima.php");
  @INCLUDE ("includes/config.php");
  @INCLUDE ("includes/abrebanco.php");

$info = $numero;
$sql_mais = "select * from automoveis where id='$info'";
$exe_mais = mysql_query($sql_mais);
$mais = mysql_result($exe_mais,0,"marca");
$mais2 = mysql_result($exe_mais,0,"modelo");
$mais3 = mysql_result($exe_mais,0,"categoria");
$mais4 = mysql_result($exe_mais,0,"tipo");

$sql_marca = "select * from marcas where id='$mais'";
$exe_marca = mysql_query($sql_marca);

$sql_mod = "select * from modelos where id='$mais2'";
$exe_mod = mysql_query($sql_mod);

$sql_categ = "select * from categorias where id='$mais3'";
$exe_categ = mysql_query($sql_categ);

$sql_tipo = "select * from tipos where id='$mais4'";
$exe_tipo = mysql_query($sql_tipo);
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="150" valign="top">
<?
  include ("includes/barraesq.php");
?>
    </td>
    <td height="100%" valign="top"> <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          
      <td height="100%" align="center" valign="top" bgcolor="#FFFFFF"> <br>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="center"><img src="imagens/tit_adm_autos.gif" width="456" height="27"></td>
              </tr>
            </table>
            <br>
            <?=$fonte02?>
            <b>Mais informações sobre o automóvel</b><br>
            <br>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
<?
  $foto = mysql_result($exe_mais,0,"foto");                      
  if ($foto != ""){
?>
                   <tr><td width="0%"> </td>
                 <td colspan='2' align='center' bgcolor='#DBDBDB'><img src="<?=$foto?>" width="300" border="1" bordercolor="<?=$table?>"></td>
                 <td width="1%"> </td></tr>
<?
  }
?>
              <tr>
                <td width="0%"> </td>
                <td width="21%" bgcolor="#EDEDED"><?=$fonte02?>
                   <b>Marca:</b></td>
                <td width="78%" bgcolor="#EDEDED"> <?=$fonte02?> <?=mysql_result($exe_marca,0,"marca")?> </td>
                <td width="1%"> </td>
              </tr>
              <tr>
                <td width="0%"> </td>
                <td width="21%" bgcolor="#DBDBDB"><?=$fonte02?>  <b>Modelo:</b></td>
                <td width="78%" bgcolor="#DBDBDB"> <?=$fonte02?> <?=mysql_result($exe_mod,0,"modelo")?> </td>
                <td width="1%"> </td>
              </tr>
              <tr>
                <td width="0%"> </td>
                <td width="21%" bgcolor="#EDEDED"><?=$fonte02?>  <b>Ano:</b></td>
                <td width="78%" bgcolor="#EDEDED"> <?=$fonte02?> <?=mysql_result($exe_mais,0,"ano")?> </td>
                <td width="1%"> </td>
              </tr>
              <tr>
                <td width="0%"> </td>
                <td width="21%" bgcolor="#DBDBDB"><?=$fonte02?>  <b>Cor:</b></td>
                <td width="78%" bgcolor="#DBDBDB"> <?=$fonte02?> <?=mysql_result($exe_mais,0,"cor")?> </td>
                <td width="1%"> </td>
              </tr>
              <tr>
                <td width="0%"> </td>
                <td width="21%" bgcolor="#EDEDED"> <?=$fonte02?>  <b>Preço:</b></td>
                <td width="78%" bgcolor="#EDEDED"> <?=$fonte02?> <?=mysql_result($exe_mais,0,"preco")?> </td>
                <td width="1%"> </td>
              </tr>
              <tr>
                <td width="0%"> </td>
                <td width="21%" bgcolor="#DBDBDB"> <?=$fonte02?>  <b>Descrição:</b></td>
                <td width="78%" bgcolor="#DBDBDB"> <?=$fonte02?> <?=mysql_result($exe_mais,0,"descricao")?> </td>
                <td width="1%"> </td>
              </tr>
              <tr>
                <td width="0%"> </td>
                <td width="21%" bgcolor="#EDEDED"> <?=$fonte02?>  <b>Categoria:</b></td>
                <td width="78%" bgcolor="#EDEDED"> <?=$fonte02?> <?=mysql_result($exe_categ,0,"categoria")?> </td>
                <td width="1%"> </td>
              </tr>
              <tr>
                <td width="0%"> </td>
                <td width="21%" bgcolor="#DBDBDB"> <?=$fonte02?>  <b>Tipo:</b></td>
                <td width="78%" bgcolor="#DBDBDB"> <?=$fonte02?> <?=mysql_result($exe_tipo,0,"tipo")?> </td>
                <td width="1%"> </td>
              </tr>
            </table>
            <br>
            <?=$fonte02?>
            <a href="java script:history.back(1)"><b>voltar<br>
            <br></b></a></td>
        </tr>
      </table></td>
    <td width="152" valign="top" background="imagens/fundo_barra_dir.gif">
<?
  @include ("includes/barradir.php");
?></td>
  </tr>
</table>
<?
  @INCLUDE ("includes/rodape.php");
?>


e nas outras páginas, as linhas com erro são semelhantes a estas, mudando apenas a palavra que fica após entre as aspas.

um colega sugeriu eu olhar se nas tabelas do banco de dados continha a informação "auto_increment" dei uma olhada lá e achei isso na linha "id" em todas as tabelas do banco de dados.

aguel aí pode me ajudar a decifrar e corrigir este problema?

ou alguemn tem um bom script de revenda de carros que possa me indicar... ???

to no aguardo...
0

#2 User is offline   clayton-mer 

  • Group: Membros
  • Posts: 14
  • Joined: 17-October 04

Posted 16 April 2007 - 08:18 PM

amigo estou procurando este script, vc poderia me passar fazendo um grande favor
0

#3 User is offline   faveladoidera 

  • Group: Membros
  • Posts: 1
  • Joined: 02-May 09

  Posted 02 May 2009 - 08:57 PM

QUOTE(clayton-mer @ 16/4/2007 19:04:21) <{POST_SNAPBACK}>
amigo estou procurando este script, vc poderia me passar fazendo um grande favor



Veja esses 2 scripts que peguei com um cara na net.
Qualquer coisa entra em contato comigo.
favelaclan@yahoo.com.br
ou msn : edsontotal@itelefonica.com.br

http://www.emrsistema.net/revenda1/default.php
http://www.emrsistema.net/revenda1/default3.php
http://www.emrsistema.net/revenda2/

Os dois primeiros são layout diferente
0

#4 User is offline   Wanderson Regis 

  • Group: Moderadores
  • Posts: 1275
  • Joined: 10-January 05

Posted 05 May 2009 - 09:22 PM

Cara, seguinte, o fórum não é pra dar suporte a scripts de terceiros, mas sim pra te ajudar a desenvolver seus próprios trabalhos.

De qualquer forma, sem saber qual é o erro que dá, não tem como ajudar, e uma coisa que você pode tentar tirar quelas arrobas dos includes, por que elas ocultam os posíveis erros, o que pode dificultar a resolução do problema.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic



Publicidade




1 User(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)