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");
?>
@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...

Help














