![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
CraigMartin
-
Posts
1 -
Joined
-
Last visited
Never
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Using a php variable in iFrame
in PHP Coding Help
Posted
Cant seem to get this to work. The variable does echo the url.
What is the correct way to use the variable inside the iframe?
$url = $db->loadResult();
<iframe src="<?php echo $url; ?>"width="450" height="259" frameborder="0" allowfullscreen></iframe>