Announcement
Collapse
No announcement yet.
insert variables into html
Collapse
X
-
PHP Code:<?php
$variables = "my name";
echo<<<myHTML
PHP can print
large sections
of text and whatnot.
This text can even
include $variables.
myHTML;
?>
PHP can print
large sections
of text and whatnot.
This text can even
include <?=$variables;?>.
Leave a comment:
-
insert variables into html
let me start off by saying that i'm still fairly new to php
now, my page pulls some info out from a mysql db, and stores them into variables. I also have a full html page, and I need to place those variables in several spread out locations on the page. I could use the print command for every line of code, but thats pretty annoying, is there any way I can use the print code for the whole html part of the page
or insert the php code into small parts of the html code
thanks
DimavaTags: None
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Leave a comment: