RE: [PHP-ES] for bien hecho
| From: | Francisco Mendoza | Date: | Wed, 21 Nov 2001 12:32:17 +0000 |
| Subject: | RE: [PHP-ES] for bien hecho | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-15851@lists.php.net to get a copy of this message | ||
Una solucion seria:
for($i=i;$i<=NMaterias;$i++){
$mat="materia".$i
....
y luego en el insert usar la variable $$mat (ojo es con doble $)