<?php$claveid = $materia['claveid'];$consulta = "SELECT * FROM mat" . $claveid . "t1p";echo $consulta;// SELECT * FROM mat01t1p?>