|
Posted by Ron on 05/01/07 00:56
On Mon, 30 Apr 2007 09:09:45 -0700, Ron <nomail@cox.net> wrote:
>On 30 Apr 2007 08:06:20 -0700, Captain Paralytic
><paul_lautman@yahoo.com> wrote:
>
>>> <paul_laut...@yahoo.com> wrote:
>>> >On 30 Apr, 06:34, Ron <nom...@cox.net> wrote:
>>> >If you don't store the http://, how are you going to know what sort of
>>> >URL it is?
>>>
>>> Was tired by then so i would include it lthough I did try just
>>> images/image_name.jpg and it worked fine.
>>
>>It worked because images/image_name.jpg is relative to the address of
>>the current page and thus inherits the address and directory
>>information of it. But if the image as on another server, it could be
>>an https:// or ftp:// or file:// or ... URL.
>So is it best to store the entire url? or what you put above?
>
>And do you think the loop in a loop getting the records into an array
>and then outputting would work?
>I select * from table then:
>$num_results = mysql_num_rows($result);
>
> for ($i=0; $i <$num_results; $i++)
> {
> $row = mysql_fetch_array($result);
>echo $row["icon_url"];
>rinse and repeat
>}
>
>What I want to do is:
>for ($i=0; $i <$num_results; $i++)
> {
> $row = mysql_fetch_array($result);
>echo $row["icon_url"];
>echo my other fields
>READ images/this_record_dir all file names
>echo "img src = "images/this_record_dir/image1.jpg abd so on
>}
>
>Can this be done?Or when you send the command back to the server it
>loses the original array? Or how to store the file names in the db
>itself via updateb query or something?
>
>And thx for letting me think
>}
I think I am overthing this. Could easily make my layout with all the
tags and cut and past the code into that text field in the db. Tiny
text would probably get me 15 images...
Navigation:
[Reply to this message]
|