What should this code be written in the PHP reference format?

Source: Internet
Author: User
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'

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.