Forums

This topic is locked

Dynamic image preview

Posted 04 Feb 2005 03:29:10
1
has voted
04 Feb 2005 03:29:10 Andrew Webb posted:
Hi, just building a very simple database which also has a image (dynamic), when I preview in dreamweaver (PHP) Live view mode, the image appears, but when I look at it from my broswer the image doesn't show. Im currently working on the local copy so it should work instantly, is there something perhaps with the php server runnin on my mac that needs adjusting to display dynamic images?

Much appreciated

Replies

Replied 04 Feb 2005 03:43:52
04 Feb 2005 03:43:52 Chris Charlton replied:
I'd <i>view source</i> on what the PHP outputs, so you can double-check the path that's being outputted for the image. Also, (it happens) make sure you uploaded the image(s). <img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle> <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>
Replied 04 Feb 2005 04:04:09
04 Feb 2005 04:04:09 Andrew Webb replied:
I double checked the code, I even put the image in the root folder, I got dreamweaver to add the image dynamically ...

&lt;tr align="left" valign="top"&gt;
&lt;td&gt;&lt;p&gt;image&lt;/p&gt;&lt;/td&gt;
&lt;td colspan="3"&gt;&lt;img src="&lt;?php echo $row_Recordset1['image']; ?&gt;"&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?&gt;
&lt;tr&gt;


... and again when I click live preview, it displays the image, why can dreamweaver display the image, but both safari and explorer can't, when they all work of the mac php server?
Replied 04 Feb 2005 09:37:58
04 Feb 2005 09:37:58 Chris Charlton replied:
Just for kicks: What version of PHP? What version of MySQL? What version of DW?

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>
Replied 04 Feb 2005 12:30:11
04 Feb 2005 12:30:11 Andrew Webb replied:
The latest version, the strange thing is, it works when I use a PNG file, no with jpegs or gifs.
Replied 04 Feb 2005 12:44:12
04 Feb 2005 12:44:12 Andrew Webb replied:
Just like to say thankyou for your help Chris, the jpgs now work, for some reason the only jpg I used didn't work, I create my own image, and it worked straight away! Thankyou again for your help.

Kind regards,


Andy

Reply to this topic