0

why is this not working? :(

<img src='<?php echo $imgloc; ?>' width='700'>

Edited by centenond

4
Contributors
12
Replies
34
Views
3 Years
Discussion Span
Last Post by centenond
Featured Replies
  • I believe you don't need these simple quotes in width. And you need double quotes in src : `<img src="<?php echo $imgloc; ?>" width=700 />` Read More

  • 1

    Did you dry just print the value directly like `<img id="imgs" src="../images/verificarimg/img.jpeg" width=700>` ? Then, If you don't get the image, please check the path of image/name of image/type of image(jpeg,jpg,png etc) Read More

  • remove the dots.. try using the full path.. you could user server var.. `$imglog = $_SERVER['HTTP_HOST'] . '/images/image.jpg';` Read More

1

I believe you don't need these simple quotes in width. And you need double quotes in src : <img src="<?php echo $imgloc; ?>" width=700 />

0

No , no luck grabiel , just in case might be the dots my variable is set like this

$imgloc = "../images/verificarimg/img.jpeg";
0

even tried with java like this and nothing seems to work :/

var imgloc = "../images/verificarimg/img.jpeg"
document.getElementById("imgs").src = imgloc;






<img id="imgs" src="bleh" width=700>

Edited by centenond

1

Did you dry just print the value directly like
<img id="imgs" src="../images/verificarimg/img.jpeg" width=700> ?

Then, If you don't get the image, please check the path of image/name of image/type of image(jpeg,jpg,png etc)

Edited by Bachu: text correction

0

Did you dry just print the value directly like
<img id="imgs" src="../images/verificarimg/img.jpeg" width=700> ?

Then, If you don't get the image, please check the path of image/name of image/type of image(jpeg,jpg,png etc)

Yes i did sir that was my first thought... and it workd fine if i print just the value like that :S

Edited by centenond

2

remove the dots.. try using the full path.. you could user server var..

$imglog = $_SERVER['HTTP_HOST'] . '/images/image.jpg';

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.