Este primer archivos es el de clientes y de aqui se manda a rastrear por numero de factura:
</p>
</body></html>
Si mando el archivo anterior a un rastreo individual que hice lo hace pero sin tablas sin nada:
donde si funciona se llama rastreos.php
<html>
<head>
</head>
<body>
<?
trim ($terminobusqueda);
if (!$tipobusqueda || !$terminobusqueda)
{
echo "No has introducido los terminos del rastreo . Por favor vuelve e inténtalo de nuevo.";
exit;
}
$terminobusqueda = addslashes($terminobusqueda);
@ $db = mysql_pconnect("localhost", "root", "offshore");
if (!$db)
{
echo "Error: No se ha podido conectar a la base de datos. Por favor, prueba de nuevo más tarde.";
exit;
}
mysql_select_db("rastreos");
$consulta = "select * from rastreos where ".$tipobusqueda." like '%".$terminobusqueda."%'";
$resultado = mysql_query($consulta);
$num_resultados = mysql_num_rows($resultado);
echo "<p>Numero de Rastreo (factura Econtrada:) ".$num_resultados."</p>";
for ($i=0; $i <$num_resultados; $i++)
{
$row = mysql_fetch_array($resultado);
echo "</strong><br>Guia de la Factura: ";
echo stripslashes($row["factura_id"]);
echo "</strong><br>Tipo de envio: ";
echo stripslashes($row["tipoenvio"]);
echo "<br>Tipo de servicio: ";
echo stripslashes($row["tiposervicio"]);
echo "<br>Tipo de Entrega: ";
echo stripslashes($row["tipoentrega"]);
echo "<br>Numero de paquetes: ";
echo stripslashes($row["nopaquetes"]);
echo "<br>Origen: ";
echo stripslashes($row["origen"]);
echo "<br>Destino: ";
echo stripslashes($row["destino"]);
echo "<br>Nombre del remitente: ";
echo stripslashes($row["nremitente"]);
echo "<br>Nombre del consignatario: ";
echo stripslashes($row["noconsignatario"]);
echo "<br>Fecha de documentacion: ";
echo stripslashes($row["fdocumentacion"]);
echo "<br>Situacion Actual: ";
echo stripslashes($row["situacion"]);
echo "<br>Fecha de recepcion: ";
echo stripslashes($row["frecepcion"]);
echo "<br>Quien lo recibio: ";
echo stripslashes($row["recibio"]);
echo "<br>Identificacion: ";
echo stripslashes($row["id"]);
echo "</p>";
}
?>
si lo hago asi si lo hace pero a donde yo kiero mandarlo es a una tabla los kiero acomodar sin conseguirlo me manda errores en php opersonalizada que hice:
que se llama rastreosdos.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Rastreos Ibarrola Elias</title>
<meta name="GENERATOR" content="Created by BlueVoda">
<script language="JavaScript" type="text/javascript">
<!--
function popupwnd(url, toolbar, menubar, locationbar, resize, scrollbars, statusbar, left, top, width, height)
{
var popupwindow = this.open(url, '', 'toolbar=' + toolbar + ',menubar=' + menubar + ',location=' + locationbar + ',scrollbars=' + scrollbars + ',resizable=' + resize + ',status=' + statusbar + ',left=' + left + ',top=' + top + ',width=' + width + ',height=' + height);
}
//-->
</script>
<style type="text/css">
img { behavior: url("pngfix.htc"); }
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<script type="text/javascript" src="stmenu.js"></script>
<link href="multipack.css" rel="stylesheet" type="text/css">
</head><body text="#000000" alink="#0000ff" bgcolor="#ffffff">
<div id="Layer1" style="position:absolute; width:894px; height:35px; z-index:42; top: 9px; left: 39px; visibility: hidden;">
<table width="100%" border="1">
<tr>
<td><script type="text/javascript" src="images/rastreos.js"></script> </td>
</tr>
</table>
</div>
<div id="bv_Image2" style="overflow: hidden; position: absolute; left: 842px; top: 121px; z-index: 8;" align="left"></div>
<div id="bv_Image3" style="overflow: hidden; position: absolute; left: 284px; top: 61px; z-index: 27;" align="left">
<img src="images/imgad_01.JPG" id="Image3" alt="" style="width: 555px; height: 90px;" align="top" border="0"></div>
<div id="bv_Text5" style="position: absolute; left: 8px; top: 224px; width: 153px; height: 32px; z-index: 11;" align="left">
<font style="font-size: 13px;" color="#000000" face="Arial"><a href="javascript:popupwnd('rastreos.php','no','no' ,'no','no','no','no','','','','')" target="_self">[Rastreos de mercancias]</a><br><a href="javascript:popupwnd('historial.php','no','no ','no','no','no','no','','','','')" target="_self">[Historial de rastreos]</a></font></div>
<div id="bv_Text6" style="position: absolute; left: 9px; top: 199px; width: 178px; height: 16px; z-index: 12;" align="left">
<font style="font-size: 13px;" color="#000000" face="Arial"><b>Por Favor Elija su Opcion</b></font></div>
<div id="bv_Text7" style="position: absolute; left: 10px; top: 282px; width: 54px; height: 16px; z-index: 13;" align="left">
<font style="font-size: 13px;" color="#000000" face="Arial">Rastreo</font></div>
<div id="bv_Text8" style="position: absolute; left: 4px; top: 303px; width: 188px; height: 32px; z-index: 14;" align="left">
<font style="font-size: 13px;" color="#000000" face="Arial">Sólo un número de guía x línea<br>
Máximo </font></div>
<div id="bv_Text9" style="position: absolute; left: 13px; top: 478px; width: 154px; height: 18px; z-index: 15;" align="left">
</div>
<div id="bv_Image12" style="overflow: hidden; position: absolute; left: 75px; top: 63px; z-index: 41;" align="left">
<img src="images/LOGO.JPG" id="Image12" alt="" style="width: 154px; height: 78px;" align="top" border="0"></div>
<div id="bv_Image4" style="overflow: hidden; position: absolute; left: 274px; top: 216px; z-index: 17;" align="left">
<img src="images/1ras.gif" id="Image4" alt="" style="width: 479px; height: 30px;" align="top" border="0"></div>
<div id="bv_Image5" style="overflow: hidden; position: absolute; left: 754px; top: 177px; z-index: 18;" align="left">
<img src="images/1iherr.gif" id="Image5" alt="" style="width: 81px; height: 76px;" align="top" border="0"></div>
<div id="bv_Form1" style="position: absolute; left: 0px; top: 285px; width: 213px; height: 188px; background-color: rgb(237, 237, 250); z-index: 19;" align="left">
<form name="Form1" method="post" action="rastreosdos.php" enctype="text/plain" id="Form1">
<textarea name="TextArea1" id="TextArea1" style="position: absolute; left: 4px; top: 50px; width: 169px; height: 87px; z-index: 0;" rows="3" cols="14"></textarea>
<div id="bv_Image7" style="overflow: hidden; position: absolute; left: 43px; top: 146px; z-index: 1;" align="left">
<input type=image src="images/rastreoon.JPG" id="Image7" alt="" style="width: 56px; height: 20px;" align="top" border="0"></div>
<hr id="Line1" style="position: absolute; left: 3px; top: 7px; width: 177px; height: 2px; z-index: 2;" size="2" width="177" color="#ff0000" noshade="noshade">
<hr id="Line2" style="position: absolute; left: 2px; top: 172px; width: 179px; height: 2px; z-index: 3;" size="2" width="179" color="#ff0000" noshade="noshade">
<div id="bv_Text10" style="position: absolute; left: 10px; top: 19px; width: 188px; height: 32px; z-index: 4;" align="left">
<font style="font-size: 13px;" color="#000000" face="Arial">Sólo un número de guía x línea<br>
Máximo </font></div>
</form>
</div>
<div id="Layer2" style="position:absolute; width:682px; height:300px; z-index:43; left: 242px; top: 286px;">
<table width="100%" border="0">
<tr class="celda03">
<td width="45%">No. guia </td>
<td width="55%"> </td>
</tr>
<tr class="celda04">
<td> Tipo de envío </td>
<td> </td>
</tr>
<tr class="celda03">
<td> Tipo de servicio </td>
<td> </td>
</tr>
<tr class="celda04">
<td> Tipo de entrega </td>
<td> </td>
</tr>
<tr class="celda03">
<td> Número de paquetes </td>
<td> </td>
</tr>
<tr class="celda03">
<td> Origen </td>
<td> </td>
</tr>
<tr class="celda04">
<td> Destino </td>
<td> </td>
</tr>
<tr class="celda03">
<td> Nombre del remitente </td>
<td> </td>
</tr>
<tr class="celda04">
<td> Nombre del consignatario </td>
<td> </td>
</tr>
<tr class="celda03">
<td> Fecha de documentación </td>
<td> </td>
</tr>
<tr class="celda04">
<td> Situación actual </td>
<td> </td>
</tr>
<tr class="celda03">
<td> Fecha de recepción </td>
<td> </td>
</tr>
<tr class="celda04">
<td> Quien lo recibió </td>
<td> </td>
</tr>
<tr class="celda03">
<td> Identificación </td>
<td> </td>
</tr>
<tr class="celda03">
<td height="30"> </td>
<td> </td>
</tr>
</table>
</div>
<
Código PHP:
[PHP]