Jump to content

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.

 

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.