|
Posted by Frankly on 09/30/90 11:49
"strawberry" <zac.carey@gmail.com> wrote in message
news:1149183862.532915.143440@i39g2000cwa.googlegroups.com...
>
>> isnt it better not to store images in the database.
>
> I wouldn't store the images in the database, just store the paths to
> the images. It's common practice to store things like that outside of
> the server path, i.e. not in the htdocs directory, and then create a
> php 'include file' that contains information about the
> whereabouts of the images folder.
>
>> as i understand it just typing in the hyper link would make it just text.
>> dont i have to do some kind of script?
>
> Yes. In php, you use html to create the hyperlink, just like normal
> html - except you might write it something like this (untested):
>
> echo "<a href='$img?id={$row['img_id']}'>Look inside this
> apartment</a>\n";
>
> where $img is the path to the folder (as assigned by the include file)
> and $row['img_id'] is the name of the associated image.
>
> Incidentally, the following script purports to reduce the calorie
> intake from pancakes (again untested);
> <html>
> <head><title>Pancake Calorie Content Reducer</title></head>
> <body>
> <?php
> echo "<center>EAT FEWER PANCAKES</center>";
> ?>
> </body>
> </html>
please dont think i am ignoring you or take my not replying as anything bad.
I do thank you and i am sure i will have some questions when i get up to
this point. but i do thank you in a way for helping me look into the future
for the things I will need to do.
the only thing I have now that I will probably be using in the end is
dreamweaver 8 - however by the time i am done will i really need it. i did
learn that a great way to make web pages is using tables and have already
made a few.
Frank
[Back to original message]
|