Reply to Re: Newbie needs help ......creating a hyperlink with criteria

Your name:

Reply:


Posted by Rami Elomaa on 04/05/07 09:25

Johny Begood kirjoitti:
> Hi All,
>
> I am trying to get a script to query a an odbc table and return with a list
> of records, each record's ID will be a hyperlink which when clicked on will
> use that ID as criteria for the next script. I can do it with a single
> record and a form field but this is not really what I need, can someone be
> so kind as to give me some guidance the script I want to use is as follows:
>
> I having trouble with this bit '<a
> href="testcallscript.php?$TableField=[$Criteria];">'

Single quotes have a different meaning than double quotes. Variables
inside single quotes aren't evaluated, but instead taken as literal
strings. You should be using the quotes vice versa to get the variables
parsed:

"<a href='testcallscript.php?$TableField=[$Criteria];'>"

Cos you know in html it don't matter which quotes you use, but in php it
does, so you should switch them like this.

If you care to Read The Fine Manual, this topic is also covered:
http://www.php.net/manual/en/language.types.string.php

--
Rami.Elomaa@gmail.com
"Olemme apinoiden planeetalla."

[Back to original 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

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