php - Unlimited number of tables getting produces -


मेरे पास यह कोड है:

  के लिए ($ i = 0; $ i & lt; = 47; $ i ++) {गूंजती "& lt; tr & gt;"; के लिए ($ i = 0; $ i & lt; = 11; $ i ++) {गूंजती "& lt; td class = \" tableContents color3 \ "& gt; & lt; / td & gt;"; } गूंजती है "& lt; / tr & gt;"; }  

जब मैं इसे निष्पादित करता हूं, यह केवल निष्पादित रहता है, जबकि 47 छोरों के बाद निष्पादन को रोकना चाहिए।

आप सभी को धन्यवाद।

आप हर बार अपने आंतरिक पाश के भीतर $ i रीसेट कर रहे हैं।
यह बाहरी लूप में कभी भी बढ़कर नहीं बढ़ता।


Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -