Hi,
This problem is a bit convoluted, but bear with me.
Get info from mysql table, then
while($row = mysql_fetch_array($result))
{
global $url;
$url = $row["url"];
echo "$engineurl";
}
The above outputs http://www.domain1.com?url=$url
But here is my problem:
$engineurl is stored in a mysql table as http://www.domain1.com?url=$url
$url is stored in another table as http://www.domain2.com. I issue a separate query to obtain it.
Ultimately, the output I expect for $engineurl is http://www.domain1.com?url=http://www.domain2.com.
Instead what I get is http://www.domain1.com?url=$url. This means php does not recognize $url as a variable in the query string.
However, when I manually add $url to the query string like this:
echo "$engineurl . $url";
I get this http://www.domain1.com?url=$urlhttp://www.domain2.com.
Any ideas why php does not recognize $url as a variable?
The above is just a simplified version of what I'm actually working on. Thanks.
Richie.