niknem Posted April 23, 2007 Share Posted April 23, 2007 i dunno why this function doesnt work... it only prints the </br> function buildMatrixInput($rows, $columns, $matrixNumber) { for ($i = 1; $i <= $rows; $i++) { for ($j = 1; $j <= $colums; $j++) { $tabIndex = $j*$i+$j; echo ("<input name=\"m" . $matrixNumber . "_" . $i . $j . "\" type=\"number\" id=\"m" . $matrixNumber . "_" . $i . $j . "\" tabindex=\"" . $tabIndex . "\" size=\"3\" maxlength=\"2\" />"); } echo "<br />\n"; } } Link to comment https://forums.phpfreaks.com/topic/48309-solved-doesnt-print-in-html-file/ Share on other sites More sharing options...
mpharo Posted April 23, 2007 Share Posted April 23, 2007 mispelled columns in the second for statement Link to comment https://forums.phpfreaks.com/topic/48309-solved-doesnt-print-in-html-file/#findComment-236171 Share on other sites More sharing options...
paul2463 Posted April 23, 2007 Share Posted April 23, 2007 works perfectly with that spelling change - good spot mpharo Link to comment https://forums.phpfreaks.com/topic/48309-solved-doesnt-print-in-html-file/#findComment-236172 Share on other sites More sharing options...
niknem Posted April 23, 2007 Author Share Posted April 23, 2007 what a stupid i am! tnks a lot! Link to comment https://forums.phpfreaks.com/topic/48309-solved-doesnt-print-in-html-file/#findComment-236433 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.