infinite for loop while writing a table


#1

why am i getting infinite rows??

[php]
This code produces infinite rows… what am i doing wrong!!!

[php]

Multiplication Table

Multiplication Table

<?php $columns = $_POST['columns']; $rows = $_POST['rows']; print ""; for($rcount = 0; $rcount <= $rows; $rcount++) { print ""; for($ccount = 0; $ccount <= $columns; $ccount++) { if($rcount = 0) { print ""; } else { print ""; } } print ""; } print "
$ccount$ccount
"; ?> [/php] [/php]

#2

Please disregard the obvious copy & paste error :slight_smile:

thanks for the help