Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/06/2009, 10:46
hucht
 
Fecha de Ingreso: octubre-2008
Mensajes: 140
Antigüedad: 15 años, 6 meses
Puntos: 1
Error T_FINAL

Tengo un formulario php el cual tiene el action:

Código:
<?php
$inicial=$_POST[inicial];
$final=$_POST[final];
$cantidad=$_POST[cantidad];
$tc=$_POST[tc];
$link = mysql_connect("localhost","user1","xxxxxx");
if (!$link)
{die('No se pudo contectar: '. mysql_error());}
mysql_select_db("cueros",$link);
mysql_query("INSERT INTO caja_".$inicial." (fecha, tipo, detalle, cantidad) VALUES ('".$_POST[fecha]."','EGRESO','CAMBIO DE MONEDA','".$cantidad."')");
mysql_query("INSERT INTO caja_".$final." (fecha, tipo, detalle, cantidad) VALUES ('".$_POST[fecha]."','INGRESO','CAMBIO DE MONEDA','".$cantidad*$tc."')");
mysql_close($link);
?>
Pero me bota el error:

Parse error: syntax error, unexpected T_FINAL, expecting ']' in D:\AppServ\www\gibon\modulo\caja\cambiar.php on line 3

Que puedo hacer?