I have simplified my problem into the following code:
$sql_abc = "CREATE TABLE $tbl_abc( x INTEGER(255) ) "; for ($x = 1; $x <= 10; $x++) {