Php in html code
Discuss coding issues, and scripts related to PHP and MySQL.
-
mlucicom
- Posts: 37
Php in html code
Hello,
have you any ideea how this work in html without
<?php ?> tags?
Code: Select all
<div class="modal-title">{$lng->people_who_like_this}</div>
Admin
- The form of the code that you posted it can work with a template system, like php Smarty, which must be included and configured in your php script.
Otherwise, the php code (variables, functions) have to be in <?php tag to can be interpreted by php server.
So, it can work in this way, in php file:
Code: Select all
<div class="modal-title"><?php echo $lng->people_who_like_this; ?></div>
Or like this:
Code: Select all
<?php echo '<div class="modal-title">'. $lng->people_who_like_this .'</div>'; ?>
Similar Topics
-
Get country code from JavaScript to PHP
PHP - MySQL
First post
Chief I have a problem to get the countrycode into my sql-statement.
Please help me out....
This script is to detect the countrycode...
Last post
The JavaScript code cannot be executed in php.
Javascript is executed in browser, after the php finished to output its data.
Also, Javascript it is...
-
Add id from php variable into javascript code
PHP - MySQL
First post
Dear Coursesweb about mail-function I try another way to complete
Now my problem is to get the referenceid from Url.
<script src=...
Last post
Ow sometimes I`m stupid :D thanks it is working now
-
custom highlight code
PHP - MySQL
First post
Hello Coursesweb I try to update my highlight code from ini_set
but I would also like to color it with string replacements or something else
For...
Last post
I found the answer Thanks for suporting
<h1 style= font-size:20; >
<?php
ini_set('highlight.html', ' font-size= 20px class=...