why is this not working? :(

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

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 />

i already tried that too no luck :/

Try this:

<img src="<?php echo $imgloc; ?>" alt="" width="700" />

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

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

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>

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)

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

And the variable is global too , just in case might help

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

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

LOL my file was saved as html! haha Thanks youuuuuu all anyways <3

hahaha i feel so blond right now xD sorryyy

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.