You are here: Re: SQL Query not working as expected.... « PHP SQL « IT news, forums, messages
Re: SQL Query not working as expected....

Posted by Norman Peelman on 09/26/06 10:19

<jerryyang_la1@yahoo.com> wrote in message
news:1159104007.301710.20820@i3g2000cwc.googlegroups.com...
>
> strawberry wrote:
>
> > Echo " <a href=\"filestore/" . $row->FileLink . "\"><img
> > border=\"0\" src=\"smallicons/" . $row->FileIcon . ".gif\" width=\"20\"
> > height=\"20\"> $row->FileTitle</a> - " . $row->FileDescription .
> > "<br><br>";
> >
> > what do the forward slashes after filestore and smallicons mean?
>
> Thats the path.
>
> smallicons/ fileIcon !
>

I see you fixed your SQL problem but... how about,

Echo " <a href='filestore/{$row->FileLink}'><img border='0'
src='smallicons/{$row->FileIcon}.gif' width='20'
height='20'>{$row->FileTitle}</a> - {$row->FileDescription}<br><br>\n\r";

....I find this alot easier on the eyes... to include multi-dimensional
arrays ($a['one']['two']) or object properties (as above) you just need to
enclose them in {} within your double quoted strings... and not only that
but now your php code actually looks 99.9% of what you actually expect the
output to be.

Norm
--
FREE Avatar hosting at www.easyavatar.com

 

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

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