You are here: Re: Learning php Sql Read Me First. « PHP SQL « IT news, forums, messages
Re: Learning php Sql Read Me First.

Posted by Frankly on 10/14/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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация