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 Quote 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"; ? Quote 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 Quote 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? Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.