Jump to content

[SOLVED] Image not showing up in Gallery


darkfreaks

Recommended Posts

The whole thing is pretty messed up. It's in a PHP tag so it needs to be echo'ed.

 

echo "<img src="" . SURL . "/images/user/image/" . $row['name'] . "\" alt=\"" . $row['caption'] . "\">?>

 

The double quote for src needs escaped.

 

echo "<img src=\"" . SURL . "/images/user/image/" . $row['name'] . "\" alt=\"" . $row['caption'] . "\">?>

 

If you don't know what SURL is, delete it, and just make sure the path your left with, /images/user/image/ is a real path.

 

echo "<img src=\"/images/user/image/" . $row['name'] . "\" alt=\"" . $row['caption'] . "\">?>

 

Fix some more syntax errors...

 

echo "<img src=\"/images/user/image/" . $row['name'] . "\" alt=\"" . $row['caption'] . "\">";  ?>

 

Use single quotes to make it easier to read...

 

<?php echo "<img src='/images/user/image/" . $row['name'] . "' alt='" . $row['caption'] . "'>"; ?>

 

Try that.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.