You are here: Re: Newbie: Help Please! « All PHP « IT news, forums, messages
Re: Newbie: Help Please!

Posted by The Eclectic Electric on 08/05/06 14:10

LOL. I know from time as a pro programmer that sometimes you can get
yourself into a "can't see the wood for the trees" situation. The number of
times I'd been staring at a problem for hours only for someone to come along
and add a semi-colon!!! Your site looks very nice!

+e

<LawrenceTLamb@gmail.com> wrote in message
news:1154786318.746208.224040@b28g2000cwb.googlegroups.com...
> aaaaargh!
>
> Many Many Grovelling thanks! :))))
>
> Boot licking now or later?
>
> Please see
>
> http://www.solpraiaferias.com/index_pt.php
>
> for what I'm up to.... only portugues version for now.
>
> Chris
>
>
> The Eclectic Electric wrote:
>> <LawrenceTLamb@gmail.com> wrote in message
>> news:1154784340.211018.104960@75g2000cwc.googlegroups.com...
>> > Hi everyone!
>> >
>> > Am developing my first dynamic web-site using php and my sql.
>> >
>> > Still at the beginning but am going a bit mad as one does after sevral
>> > hours of searching for answeres on google and can't find exactly what
>> > you are looking for...
>> >
>> > Hope you can help!
>> >
>> > I have an index.php page which calls an include to retrieve some basic
>> > data from a mysql table.
>> >
>> > I have had no problem retrieving the text data from the database and
>> > displaying it. (Page set up with html tables)
>> >
>> > I store my images in an /images subdirectory. a.jpg, b.jpg etc.
>> >
>> > I have a row in the mysql database table called image_ref where the
>> > file name is stored.
>> >
>> > However, when I try to call the image from the directory via the ref in
>> > database I get a broken image.
>> >
>> > Code I have been trying to use is:
>> >
>> > Print "<td rowspan=\"4\"><img
>> > src=\"images/\"".$info['image_ref']."></td>";
>> >
>> > This is giving the following result in the source code:
>> >
>> > <img src="images/"cp_sagres.jpg>
>> >
>> > i.e. an extra " - so the src cannot be read correctly and the image not
>> > displayed.
>> >
>> > I have spent hours trying to change the escapes etc to no avail. Looked
>> > in books for examples...none.
>> >
>> > All advice (including directions to suitable tutorials) would be
>> > appreciated and grovelled.
>> >
>> >
>> > Chris
>> >
>>
>> src=\"images/\"".$info['image_ref']."></td>";
>>
>> ^
>> |
>>
>> Noob myself so I may be talking nonsense, but it seems that you're
>> getting
>> out what you've put in - you've escaped a " here, whereas I think it
>> needs
>> to be after the filename, i.e.
>>
>> Print "<td rowspan=\"4\"><img
>> src=\"images/".$info['image_ref']."\"></td>";
>>
>> +e
>

 

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

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