<?php session_start();
require('../cfg/res.php');
require('../cfg/cfg.php');
$vhc_sql='select *from vhcl0 where vhcl_codigo="'.$_POST['indx'].'"';
$vhc_res=mysql_query($vhc_sql,$link_vcrx);
if(mysql_num_rows($vhc_res)!=0)
{
?>
<resultado>
	<descri><?php echo mysql_result($vhc_res,0,'vhcl_descri');?></descri>
	<placa><?php echo mysql_result($vhc_res,0,'vhcl_placa');?></placa>
	<motor><?php echo mysql_result($vhc_res,0,'vhcl_motor');?></motor>
	<cilindro><?php echo mysql_result($vhc_res,0,'vhcl_cilindro');?></cilindro>
	<pais><?php echo mysql_result($vhc_res,0,'vhcl_pais');?></pais>
	<mdlo><?php echo mysql_result($vhc_res,0,'vhcl_mdlo');?></mdlo>
	<mrca><?php echo mysql_result($vhc_res,0,'vhcl_mrca');?></mrca>
	<vinn><?php echo mysql_result($vhc_res,0,'vhcl_vinn');?></vinn>
	<anio><?php echo mysql_result($vhc_res,0,'vhcl_anio');?></anio>
	<clor><?php echo mysql_result($vhc_res,0,'vhcl_clor');?></clor>
	<clor2><?php echo mysql_result($vhc_res,0,'vhcl_clor2');?></clor2>
	<clase><?php echo mysql_result($vhc_res,0,'vhcl_clase');?></clase>
	<conductor><?php echo mysql_result($vhc_res,0,'vhcl_conductor');?></conductor>
    <error>0</error>
</resultado>

<?php	
}else{
?>
<resultado>
	<error><?php echo $vhc_sql;?></error>
</resultado>
<?php }?>
