steveh62 Posted October 17, 2008 Share Posted October 17, 2008 I Have a variable string $x = "some html stuff <select><option value><option></select> more html stuff" that is called to format some html from indclude on another page... what I need is to have a msql query inside my variable to dynamically format the <select></select> from db data ... how do I break out of a string formated html string to include the query? rgds Link to comment https://forums.phpfreaks.com/topic/128854-how-can-i-break-up-a-variable-to-include/ Share on other sites More sharing options...
Maq Posted October 17, 2008 Share Posted October 17, 2008 $x = "some html stuff " . $variable . " more html stuff"; ? Link to comment https://forums.phpfreaks.com/topic/128854-how-can-i-break-up-a-variable-to-include/#findComment-668003 Share on other sites More sharing options...
steveh62 Posted October 17, 2008 Author Share Posted October 17, 2008 right ok...as tho I did not know that Link to comment https://forums.phpfreaks.com/topic/128854-how-can-i-break-up-a-variable-to-include/#findComment-668019 Share on other sites More sharing options...
Maq Posted October 17, 2008 Share Posted October 17, 2008 how do I break out of a string formated html string to include the query? Link to comment https://forums.phpfreaks.com/topic/128854-how-can-i-break-up-a-variable-to-include/#findComment-668032 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.