使用simpletip,但它发送错误

时间:2016-08-09 13:26:38

标签: php jquery mysql simpletip

我真的需要一些帮助我试图使用简单提示,但它发送错误error that sends me我的图像在地毯上命名为imagenes而在那个地毯里面是另一个名为refacciones的地毯,我的图像是( imagenes / refacciones / image.png)我认为这就是问题,但我现在不知道如何在我的数据库上修复它我在表中有一个名为refacciones的表我有一个列名imagen是一个保存的src的src图像

<?php
<define('INCLUDE_CHECK',1);
require "../conexion.php";

if(!$_POST['img']) die("NO product exist!");

$img=mysql_real_escape_string(end(explode('/',$_POST['img'])));

$row=mysql_fetch_assoc(mysql_query("SELECT * FROM refacciones WHERE imagen='".$img."'"));

if(!$row) die("NO product exist!");

echo '<strong>'.$row['nombre'].'</strong>
<span>Ficha Tecnica</span>
<p class="modelo">Modelo:'.$row['modelo'].'</p>
<p class="marca">Marca:'.$row['marca'].'</p>
<p class="descr">Descripcion:'.$row['descripcion'].'</p>

<strong>precio: $'.$row['precio'].'</strong>
<small>Arrastralo a la sección de cotización.</small>';
?>

我真的会帮你解决问题

0 个答案:

没有答案