![]() = "$row->case_thickness (".plus($product->case_thickness - $row->case_thickness). ![]() ![]() And that could increase S&P 500 profits by 30 or more over the next decade,' Snider told CNBC on. Do not use PHP to display the actual table. 'Over the next 10 years, AI could increase productivity by 1.5 per year. For example, this is useful when you get rows of information from MySQL. In the loop structure you are to display a two dimensional table holding PHP generated random numbers in each cell. = "image_url."' alt='".$row->model_no."'>" You can display a 2 dimensional array in PHP as a HTML table using nested foreach loop. Is it necessary to use so many foreach loops? Do you have any other better way of getting this output? $sql = "SELECT * FROM product WHERE name IN ('Product 1','Product 2') " I've used quite a lot of foreach loops to achieve this type of HTML table that has titles in the first cell of each row: You probably dont get any output because your php.ini has set not to allow shorthand php ' Oh, and yes, like mentioned by Barmer and Revent, you have some HTML tag-nesting issues as well.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |