Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/11/2009, 16:07
Bertitha
 
Fecha de Ingreso: septiembre-2009
Ubicación: Aguascalientes,Méx
Mensajes: 158
Antigüedad: 14 años, 8 meses
Puntos: 0
Problemas con estes insert

Me marca este error: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in C:\xampp\htdocs\Sistema\Cliente\RCliente.php on line 59

Código PHP:
$empresa=$_GET['nom_empresa'];
        
$etapa=$_GET['etapa'];
        
$giro=$_GET['giro'];
        
$forma=$_GET['forma'];
        
$rfc=$_GET['rfc'];
        
$direccion=$_GET['direccion'];
        
$estado=$_GET['estado'];
        
$ciudad=$_GET['ciudad'];
        
$delegacion=$_GET['delegacion'];
        
$codigo=$_GET['codigo'];
        
$tel1=$_GET['tel1'];
        
$tel2=$_GET['tel2'];
        
$tel3=$_GET['tel3'];
        
$fax1=$_GET['fax1'];
        
$fax2=$_GET['fax2'];
        
$c_tipocliente=$_GET['c_tipocliente'];
        
$combo_subtipo=$_GET['combo_subtipo'];
        
$texto=$_GET['texto'];
        
$area=$_GET['area2'];
        
$archivo=$_GET['archivo2'];
        
$estado_cli=$_GET['estado_cli'];
        
        
$con mysql_connect("localhost","root",""); 
        if (!
$con
        {
            die ( 
'No pudo conectarse:'mysql_error ());
        } 
        
mysql_select_db("gestioniso"$con);
        $ 
sql "INSERT INTO            cliente(nom_empresa,etapa,giro,fingreso,rfc,direccion,estado,ciudad,delegacion,codigop,tel1,tel2,tel3,fax1,fax2,tipo_cliente,se_encuentra,referencia,comentario,liga,estatus)VALUES('$empresa','$etapa','$giro','$forma','$rfc','$direccion','$estado','$ciudad','$delegacion','$codigo','$tel1','$tel2','$tel3','$fax1','$fax2','$c_tipocliente','$combo_subtipo','$texto','$area','$archivo','$estado_cli')";
        if (! 
mysql_query ($ sql, $ con))
        {  
            die ( 
'Error:'mysql_error ());
        } 
        
mysql_close($con)
        
header('location:../Cliente/Contacto/RContacto.php');  
        echo 
"<script>alert('Cliente registrado con éxito')</script>"
La linea 59 es la del sql="Insert".....
__________________
“Primero resuelve el problema. Entonces, escribe el código.”