1

我真的需要一些帮助,我正在尝试使用 simpletip,但它向我发送错误错误,向我发送我的图像在名为 imagenes 的地毯上,而在地毯里面是另一块名为 refacciones 的地毯,并且有我的图像是 (imagenes/refacciones/ image.png)我认为就是那个问题,但我现在不知道如何在我的数据库上修复它我在该表中有一个名为 refacciones 的表我有一个列名 imagen 是图像的保存 thte

<?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>';
?>

我真的很感激你的帮助

4

0 回答 0