html - Bootstrap table in php i.e under -


I am trying to create a table in php but I think I am making a mistake in syntax.

   $ Data1 [$ num] - & gt; Find ('A', 0). '& Lt; / Td> '; Echo '& lt; Td> $ Data [$ num] - & gt; Find ('A', 0). '& Lt; / Td> '; Echo & lt; / Tr & gt; '; } Echo '& lt; / Tbody & gt; Echo '& lt; / Table & gt; ? & Gt; After each statement, you should use a semicolon (;    

), you missed them on all your statements. Besides, you can mix HTML and PHP Which makes it very clean:
  & lt; Table class = "table-table-barred table-strip" & gt; & Lt; Colgroup & gt; & Lt; Col class = "col-xs-1" & gt; & Lt; Col class = "col-xs-7" & gt; & Lt; / Colgroup & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th & gt; Date & lt; / Th & gt; & Lt; Th & gt; Title and description & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt ;? For Php ($ num = 0; $ num & lt; = $ data1; $ num ++) {echo '& lt; Tr & gt; '; Echo '& lt; Td> $ Data1 [$ num] - & gt; Search ('a', 0). '& Lt; / Td> '; Echo '& lt; Td> $ Data [$ num] - & gt; Search ('a', 0). '& Lt; / Td> '; Echo & lt; / Tr & gt; '; }? & Gt; & Lt; / Tbody & gt; & Lt; / Table & gt;    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -