I have the following code, and I can see the field names on the table, but I can't see the contents of the table, what can I do?
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<head></head><body>
<? require 'functions.php';
if (isset($selecTipo)){
switch ($selecTipo) {
case "Edo":
$link = odbc_connect ($DB_SERVER,$DB_LOGIN, $DB_PASSWORD , "");
$query = odbc_do($link, "SELECT FROM socios where socio='$cookie_user'");
$ro = odbc_result($query, 'ClaveVta');
echo ("<Center><h3>Estado de Cuenta: " .$user_name. "      Clave: " .$ro. "</h3></center><br>\n");
$queryd = odbc_do ($link, "SELECT FROM embarque where ClaveVta = '$ro'");
$fCount = odbc_num_fields($queryd);
echo ("<table border=\"1\"><thead><tr align=\"center\">\n");
$i=0;
while($a=odbc_fetch_row($queryd)){
while ($i < $fCount)
{
$i++;
$fName = odbc_field_name($queryd, $i);
$job[$fName] = odbc_result($queryd, $i);
echo ("<th>" .$fName);
}
echo ("</thead>");
}
for ($i = 0; $i < $a; $i++){
echo ("<tbody><tr>");
$q = odbc_fetch_row($queryd);
for ($j = 0; $j < odbc_num_fields($queryd); $j++){
echo ("<td align=\"center\">". $a[$j] . "</td>");
}
echo("</tr>");
}
echo ("</tbody></Table>");
break;
case "Rep":
echo ("<h2><center>Reporte de Liquidación: " .$user_name. "</center></h2><br>\n");
break;
}
echo ("<br><br><br><br><br><br><br><br><br><br><br><br><br>");
echo ("<a href=\"http://" .$HTTP_HOST. "/" .$DOCROOT. "/logout.php\">Salir</a>\n");
}
echo ("<meta http-equiv=\"redir\" content=\"0, http://" .$HTTP_HOST. "/" .$DOCROOT. "/error.htm\">");
?>
</body>
thanks.