Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing PHP variables in HTML when the HTML is in a PHP variable
    primarykey
    data
    text
    <p>I've got a .php script. In a variable I have a added html, but in that html I want to get text from another variable, how do I do this?</p> <p>This is the variable with html:</p> <pre><code>$ai_boc = ' &lt;html&gt; &lt;head&gt; &lt;title&gt;Notes by Douno&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div align="center"&gt; &lt;div style="width:600px; height:auto; border-radius:10px; background-color:#F7F1B8; background-repeat: auto; font-family:Georgia; color:#513414;"&gt; &lt;div style="height:100px; padding-top:20px; padding-left:20px; text-align:left;"&gt; &lt;p style="margin-bottom:0px; font-weight:bold; font-size:xx-large;"&gt;$ai_su&lt;/p&gt; &lt;p style="margin-top:5px; font-size:x-small; font-weight:bold;"&gt;$ai_da&lt;/p&gt; &lt;/div&gt; &lt;div style="height:1px; background-image: url(http://dl.dropbox.com/u/99775621/divider.jpg); display:block; position:relative;"&gt; &lt;/div&gt; &lt;div style="position:relative; overflow:hidden;"&gt; &lt;div style="height:auto; width:375; padding-left:20px; text-align:left; position:relative; float:left;"&gt; &lt;div style="width:375px;"&gt; &lt;p style="font-size:x-small; font-weight:bold;"&gt;&lt;?php echo $ai_bo?&gt;&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;div style="height:auto; width:160px; padding-left:20px; padding-right:20px; text-align:left; position:relative; float:left;"&gt; &lt;p style="font-size:x-small; font-weight:bold; vertical-align:bottom;"&gt;If this email is considered spam, please contact us.&lt;/br&gt;&lt;/br&gt;This email was send via Notes. An Android app developed by Douno.&lt;/p&gt; &lt;a href="https://play.google.com/store/apps/details?id=appinventor.ai_L_Bogaerts_95.Notes"&gt; &lt;img alt="Get it on Google Play" src="https://developer.android.com/images/brand/en_generic_rgb_wo_45.png" /&gt; &lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;div style="height:1px; background-image: url(http://dl.dropbox.com/u/99775621/divider.jpg); display:block; position:relative;"&gt; &lt;/div&gt; &lt;div style="height:100px; width:600px; display:inline-block; position:relative;"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; '; </code></pre> <p>I coudn't find any working explanation, so I hope someone here can help me further. The html is not finished... Still some changes I'm gonna make.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload