图像不显示

时间:2014-10-07 21:04:12

标签: php html mysql sql

这是我在数据库中的代码:

CREATE TABLE IF NOT EXISTS `uv_areas` (
  `id` int(1) NOT NULL AUTO_INCREMENT,
  `id_tipos` int(1) DEFAULT NULL,
  `descripcion` varchar(100) DEFAULT NULL,
  `comentario` text,
  `color` varchar(10) DEFAULT NULL,
  `imagen` text,
  `correo_contacto` varchar(100) DEFAULT NULL,
  `orden` int(1) DEFAULT NULL,
  `estado` int(1) DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=34;

这是我在php中的代码:

<?php

include_once ('admin/cls_MantixOaD.php');

$sql = "select id,id_tipos,descripcion,color,imagen from uv_areas where estado = 1 and id_tipos = 1 order by orden";

$c = new MantixOaD();

$c->listaSP($sql,"","");

while($c->no_vacio())
{
echo 
'
<li class="es-carousel_li" id="item_li_list" style="margin-right: 2px; width: 162px;">
<figure class="featured-thumbnail"><a href="carreras.php?id_area='.$c->valor('id').'" title="'.$c->valor('descripcion').'"><img src="admin/recursos/images/'.$c->valor('imagen').'" alt="'.$c->valor('descripcion').'" width="162px" height="120px"/></a></figure>
<div class="desc" style="">
<h5 class="h5_nuevo" style="background-color: #'.$c->valor('color').'; text-align: left;"><a href="carreras.php?id_area='.$c->valor('id').'" title="'.$c->valor('descripcion').'">'.$c->valor('descripcion').'</a></h5>
<a href="carreras.php?id_area='.$c->valor('id').'" class="btn btn-primary" title="'.$c->valor('descripcion').'">Leer m&aacute;s</a>
<a href="carreras.php?id_area='.$c->valor('id').'" title="Ver Mas">
</a>
</div>
</li> 
';
}
?>

我的问题是图片没有出现,请帮帮我,我是SQL中的总菜鸟 我真的想知道这是我的错误还是有其他问题 请帮助我TT_TT

0 个答案:

没有答案