Jump to content

image source


Reaper0167

Recommended Posts

echo '<a href="viewitem.php?sendto='.$row['id'].'"><img src="' . $row['thumb_1'] . '" border="0" alt=""></a>';

 

That is what I have on one of my pages on my site. Works great with the rest of the script.

I am trying to use that same line on another page on a different site, but it will not display the picture, just a little box with a red x.

any ideas? This is what I have so far, but the picture will not display( the line above works great for my first site. But I want to display the same stuff on a different site.

 

echo '<a href="http://www.originalsite.com/viewitem.php?sendto='.$row['id'].'"><img src="' . $row['thumb_1'] . '" border="0" alt=""></a>';

Link to comment
Share on other sites

Here is the full script that works great on the original site. But when I put the script on my other site, the picture will not display.

<?php
    include "connection2.php";
$sql = mysql_query("SELECT id, thumb_1, item_name, description, in_return, user_id FROM member_trades ORDER BY RAND() LIMIT 0, 6");
    echo "<table border='0' CELLPADDING=5 STYLE='font-size:16px'>";
    while ($row = mysql_fetch_array($sql))
    {
     echo "<tr><td align='center'>";
     echo '<a href="viewitem.php?sendto='.$row['id'].'"><img src="' . $row['thumb_1'] . '" border="0" alt=""></a>';
     echo "</td><td align='center'>";
     echo "".substr($row['item_name'],0,50),"";
     echo "</td><td align='center'>";
     echo substr($row['description'],0,50).'<a href="viewitem.php?sendto='.$row['id'].'" class="view_item"> ...more</a>';
     echo "</td><td align='center'>";
     echo substr($row['in_return'],0,50).'<a href="viewitem.php?sendto='.$row['id'].'" class="view_item"> ...</a>';
     echo "</td><td align='center'>";
     echo "</td></tr>";
     echo '<tr><td height="19" colspan="4">';
     echo '<hr width="550">';
     echo "</td></tr>";
    }
    echo "</table>";
    mysql_close();
?>

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.