Jump to content

resizing images from db


ROCKINDANO

Recommended Posts

Im not sure what you mean by "if i browse through my main code and see the img tag and click on it"?

 

Ive stripped back your code and uploaded it to my server and its all working how it should be..

 

http://buddski.com/test/main.php

this is my source code

 

<img src="images/resize_image.php?file=Official flyernail.jpg" border="1" class="floatright" title="Official flyernail.jpg" alt="Official flyernail.jpg" />

 

shouldn't the src path be something like: images/official flyernail.jpg instead of images/resize_image.php?file=Official flyernail.jpg

Your source is correct..

There is something amiss in your resizing script..

 

have you tried going to

http://localhost/[location of your script]/images/resize_image.php?file=Official flyernail.jpg

and see what it says, if anything..

Are your files directly in your root directory (htdocs or www folder)?

 

root (Folder)

|_ images (folder)

    |_ resize_image.php

    |_ Official flynail.jpg

|_ main.php

 

if thats the case you need to just navigate to http://localhost/images/resize_image.php?file=Official flynail.jpg

if they are in a folder call news or something goto http://localhost/news/images/resize_image.php?file=Official flyname.jpg

  • 3 months later...

As stated this code is used

print '<img src="images/resize_image.php?file='.$pic.'" title="" border="0" width="170" height="135" class="floatright" style="margin-left: 5px; border: 2px solid #CCCCCC; padding: 3px; background: #9bbdfd;" />'; 

 

Would all this code still work if I used..

echo '<img src="images/resize_image.php?file='.$pic.'" title="" border="0" />'; 

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.