What are some common issues when trying to integrate PHP code with HTML?

One common issue when integrating PHP code with HTML is that the PHP code may not be properly executed within the HTML file. To solve this, ensure that the file has a .php extension and that the PHP code is enclosed within <?php ?> tags.

&lt;?php
// PHP code here
?&gt;
```

Another issue is when trying to echo PHP variables within HTML. To resolve this, use echo or print statements to output the variable values directly within the HTML code.

```php
&lt;?php
$variable = &quot;Hello World!&quot;;
echo $variable;
?&gt;
```

Lastly, including external PHP files within an HTML file can be problematic. To include external PHP files, use the include or require functions.

```php
&lt;?php
include &#039;external_file.php&#039;;
?&gt;