This section of code uses the standard PHP format to write how it makes a judgment in the public PHP file. you need to mix PHP and HTML and won't write it on your own. Please help rewrite this section, what is the standard PHP format: PHPcode & lt ;? Phpif $ id = 1 {echo & quot; & lt; title & gt; $ row ['p _ name'];-what should this code be written in PHP Standard format?
I made a judgment in the public PHP file. I need to mix PHP and HTML and I won't write it myself. please help me rewrite this section and use the standard PHP writing method:
PHP code
$ Row ['p _ name'];-welcome!
";} Else {echo"Welcome
";}?>
Thank you !!!
------ Solution --------------------
Let's continue:
PHP code
{$ Row ['p _ name']}-welcome!
";} Else {echo"Welcome
";}?>
------ Solution --------------------
$ Title = ''; $ keywords =''; $ description = '';
If ($ id = 1 ){
$ Title = $ row ['p _ name'];
$ Keywords = $ row ['p _ name'];
$ Description = $ row ['p _ name'];
}?>
<? Php echo $ title;?>
------ Solution --------------------
--Silly. The first line above should be $ title = 'Welcome'