Jump to content

$row ['$image'] wont display


dazz_club

Recommended Posts

hi guys i am trying to echo out my row that is within an img src, but doesnt seem to work, any pointers??

 

Here is the code;

 

.......$query = "SELECT * FROM  products WHERE name LIKE \"%$search%\" OR category LIKE  \"%$search%\" OR image LIKE  \"%$search%\" OR type LIKE \"%$search%\" ORDER BY product_id  DESC" . " LIMIT $offset, $rowsPerPage" ;
$result = mysqli_query ($connection, $query)or die(mysqli_connect_errno() . "<p>With query:<br>$query");


while ($row = mysqli_fetch_assoc($result)){
echo "<ul style=\"font-weight:bold;list-style:none;padding:4px;margin:0px;\">";
echo "<li>";
echo $row['name'];
echo "</li>";
echo "<li>";
echo $row['type'];
echo "</li>";
echo "<li>";
echo "<img src=\"images/product-images/$row ['$image']\" />";
echo "</li>";
echo "<li>";
echo $row['category']. '<br />';
echo "</li>";
echo "</ul>";
echo "<li><a href=\"#\" style=\"font-size:8pt;color:red;\">more information >></a></li>";
echo "<div style=\"width:100%;height:5px;border-bottom:1px solid black;\"></div>";

 

kind regards

Dazzclub

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.