Código:
Pero me bota el error:<?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);
?>
Parse error: syntax error, unexpected T_FINAL, expecting ']' in D:\AppServ\www\gibon\modulo\caja\cambiar.php on line 3
Que puedo hacer?

