You are here: "Late" variable substitution « PHP Programming Language « IT news, forums, messages
"Late" variable substitution

Posted by JoeT on 11/10/06 21:17

Hi...

I want to know if this is possible.

I have a database with an attribute which has in it a SQL statement,
e.g.

select blah from table where key = $x

In a PHP function, I read in the above string into $v.
In that routine, $x is defined.

However, if I print out the string I get the original string, with $x
not being substituted.

What I want to happen is the local value of $x to get substituted into
$v.

Is this possible? If so, how do you do it?

TIA,
Joe

 

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

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