PHP page cycle shows the value of TR TD

Source: Internet
Author: User
PHP checkbox html

'. $ent ["name"]. '
 
  
   '; Echo '; Echo ' ; Echo '; Echo ' ; Echo '; $i + +; } ? > 
    



---------------------------------
The effect that is shown now is:

------------------------------------
The effect I want to arrange is as follows:


The code has been posted, for the prawn to help me change the layout display effect


Reply to discussion (solution)

 
  
  
"Name=" view[] " >

 
  
  
"Name=" view[] " >

Prawns:
Why
$i + +;
}?>
Said there was one more. I deleted it and I reported it.

$checked = $ent [' flag ']==1?] Checked= ' checked ' ":"; This line of code is wrong


 
  
  
"Name=" view[] " >

Prawns:
Why
$i + +;
}?>
Said there was one more. I deleted it and I reported it.

$checked = $ent [' flag ']==1?] Checked= ' checked ' ":"; This line of code is wrong

At the beginning of the system reported more than one parenthesis} said one more}, then I delete}.
But then $checked = $ent [' flag ']==1?] Checked= ' checked ' ":"; This line of code is wrong!

I wrote one more, like, the bottom of the number is the end of the foreach. You try this paragraph:

 
  
  
"Name=" view[] " >



$checked = $ent [' flag ']==1?] Checked= ' checked ' ":";
Say this line error!

I wrote one more, like, the bottom of the number is the end of the foreach. You try this paragraph:

 
  
  
"Name=" view[] " >


$checked = $ent [' flag ']==1?] Checked= ' checked ' ":";
Say this line error!

This piece of HTML is right. I've tested it. Check your info array to see if you have authflag this key.
Print_r ($info); print out a look at the data inside the $info.
For your HTML, I gave a mock array:

$info =array (' list ' =>array (' info ' =>array (' flag ' =>1, ' code ' =>1, ' name ' =>1) ', array (' info ' = Array (' flag ' =>0, ' code ' =>2, ' name ' =>2), array (' Info ' =>array (' flag ' =>1, ' code ' =>3, ' name ' =>3)) , Array (' Info ' =>array (' flag ' =>0, ' code ' =>4, ' name ' =>4)), array (' Info ' =>array (' flag ' =>0, ' code ' = >5, ' name ' =>5), array (' Info ' =>array (' flag ' =>0, ' code ' =>6, ' name ' =>6) '), Array (' Info ' =>array (' Flag ' =>0, ' code ' =>7, ' name ' =>7), array (' Info ' =>array (' flag ' =>0, ' code ' =>8, ' name ' =>8)));

 
 
  
          
  
             
  
   '; Notice here          $ent = $ent [' info '];          $checked = $ent [' flag ']==1?] Checked= ' checked ' ":";          Echo '
  
   
   '; $i ++;if ($i% 4 = = 0) echo ' 
    '; Note here } ?>  ': ';//note here?> 
   
'; Echo ''; Echo ' ; Echo '. $ent ["name"]."; Echo ' ; Echo '

This piece of HTML is right. I've tested it. Check your info array to see if you have authflag this key.
Print_r ($info); print out a look at the data inside the $info.
For your HTML, I gave a mock array:

$info =array (' list ' =>array (' info ' =>array (' flag ' =>1, ' code ' =>1, ' name ' =>1) ', array (' info ' = Array (' flag ' =>0, ' code ' =>2, ' name ' =>2), array (' Info ' =>array (' flag ' =>1, ' code ' =>3, ' name ' =>3)) , Array (' Info ' =>array (' flag ' =>0, ' code ' =>4, ' name ' =>4)), array (' Info ' =>array (' flag ' =>0, ' code ' = >5, ' name ' =>5), array (' Info ' =>array (' flag ' =>0, ' code ' =>6, ' name ' =>6) '), Array (' Info ' =>array (' Flag ' =>0, ' code ' =>7, ' name ' =>7), array (' Info ' =>array (' flag ' =>0, ' code ' =>8, ' name ' =>8)));


Some [authflag] = 1
--------------------------------------------------
"Name=" view_[] "> Error


Said the line was an error.

 
 
  
          
  
             
  
   '; Notice here          $ent = $ent [' info '];          $checked = $ent [' flag ']==1?] Checked= ' checked ' ":";          Echo '
  
   
   '; $i ++;if ($i% 4 = = 0) echo ' 
    '; Note here } ?>  ': ';//note here?> 
   
'; Echo ''; Echo ' ; Echo '. $ent ["name"]."; Echo ' ; Echo '




The moderator is indeed a bull X
  • 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.