Ver Mensaje Individual
  #22 (permalink)  
Antiguo 02/04/2013, 15:05
saubietteleandro
 
Fecha de Ingreso: marzo-2013
Mensajes: 24
Antigüedad: 11 años, 1 mes
Puntos: 0
Respuesta: como hacer para que texto o celda como hipervinculo

Cita:
Iniciado por bookmaster Ver Mensaje
¿Podrías poner como tienes el código ahora? asi podremos ver los cambios que realizaste.
switch($accion)
{
case 'id' :
$items = $core -> Query("select * from items");
$count = $core -> Rows("select * from items");

echo "<table border=1>";
echo "<tr><td>Datos de Items</td><td>Cantidad de items: $count</td></tr></table><br>";
echo "<div style='font-size:10px'><table border=1 ><tr><td>Codigo</td><td>Nombre_es</td><td>Nombre_en</td><td>Descripci&#243n_es</td><td>Descripci&#243n_en</td><td>Precio_es</td><td>Precio_en</td><td>Imagen</td><td>Categoria</td><td>Votos positivos</td><td>Votos negativos</td><td>Personas</td></tr>";

while ($f_items = mysql_fetch_array($items))
{
$imagenes = $core -> Query("select * from imagenes where id_item = '$f_items[id]'");
$f_imagenes = mysql_fetch_array($imagenes);

$categorias_i = $core -> Query("select * from categorias_items where id_item = '$f_items[id]'");
$f_categorias_i = mysql_fetch_array($categorias_i);

$query = $core -> Query("select nombre_es from categorias where id = '$f_categorias_i[id_categoria]'");
$query_f = mysql_fetch_array($query);

echo "<tr><td><a href= 'admin/update.php?codigo=$f_items[codigo]'>$f_items[codigo]</a></td><td>$f_items[nombre_es]</td><td>$f_items[nombre_en]</td><td>$f_items[descripcion_es]</td><td>$f_items[descripcion_en]</td><td>$f_items[precio_es]</td><td>$f_items[precio_en]</td><td><img src='$f_imagenes[url_imagen]' width=50></td><td>$query_f[nombre_es]</td><td>$f_items[votos_positivos]</td><td>$f_items[votos_negativos]</td><td>$f_items[personas]</td>";

}

echo "</tr></table></div><a href='/index.php'>Volver atras</a>";

break;

case 'cat' :
$items = $core -> Query("select * from categorias");
$count = $core -> Rows("select * from categorias");
echo "<table border=1>";
echo "<tr><td>Cantidad de categorias: $count</td></tr></table><br>";
echo "<div style='font-size:10px'><table border=1 cellspacing='1' cellpadding='0' width:100%; ><tr><td>Nombre_es</td><td>Nombre_en</td><td>Descripci&#243n_es</td><td>Descripci&#243n_en</td></tr>";

while ($f_items = mysql_fetch_array($items))
{
echo "<tr><td><a href='/admin/update_categoria.php?$f_items[nombre_es]'>$f_items[nombre_es]</a></td><td>$f_items[nombre_en]</td><td>$f_items[descripcion_es]</td><td>$f_items[descripcion_en]</td>";
}

echo "</tr></table><a href='/index.php'>Volver atras</a></div>";

break;

default :
echo "<a href='?mostrar=cat'>Mostrar por categoria</a>";
echo "<br>";
echo "<a href='?mostrar=id'>Mostrar por id</a>";

break;
}