Foros del Web » Programando para Internet » PHP »

Problemas con alta.... :(

Estas en el tema de Problemas con alta.... :( en el foro de PHP en Foros del Web. ALGUIEN ME PUEDE DECIR QUE ESTA MAL==??? NO JALA PURO ERROR... SALUDOS Código PHP:   <?php    $fuente1 = $_POST [ 'fuente' ];    $tipo1 = ...
  #1 (permalink)  
Antiguo 21/01/2008, 15:59
Avatar de fmb1982  
Fecha de Ingreso: junio-2007
Mensajes: 128
Antigüedad: 16 años, 10 meses
Puntos: 0
Problemas con alta.... :(

ALGUIEN ME PUEDE DECIR QUE ESTA MAL==??? NO JALA PURO ERROR... SALUDOS

Código PHP:
 <?php 
  $fuente1
=$_POST['fuente'];
  
$tipo1=$_POST['tipo'];
  
$articulo1=date("articulo"); 
  
$date1=date("Ymd");

include(
"con_sql_server.php");
$sql=("INSERT INTO Sintesis_Prensa(news_fuente,news_tipo,news_texto,news_fecha) 
VALUES ('"
.addslashes($fuente1)."', '".addslashes($tipo1)."','".addslashes($articulo1)."', '".addslashes($date1)."')"); 
mssql_close($conectID);
mssql_query($sql);    
    
?>

Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: 200.67.246.121,sa,sa in C:\Documents and Settings\user\Escritorio\xampplite\htdocs\con_sql_ server.php on line 14

Warning: mssql_select_db() [function.mssql-select-db]: Unable to connect to server: (null) in C:\Documents and Settings\user\Escritorio\xampplite\htdocs\con_sql_ server.php on line 15

Warning: mssql_select_db() [function.mssql-select-db]: A link to the server could not be established in C:\Documents and Settings\user\Escritorio\xampplite\htdocs\con_sql_ server.php on line 15

Warning: mssql_close(): supplied argument is not a valid MS SQL-Link resource in C:\Documents and Settings\user\Escritorio\xampplite\htdocs\guardar_ prensa.php on line 18

Warning: mssql_query() [function.mssql-query]: Unable to connect to server: (null) in C:\Documents and Settings\user\Escritorio\xampplite\htdocs\guardar_ prensa.php on line 19

Warning: mssql_query() [function.mssql-query]: A link to the server could not be established in C:\Documents and Settings\user\Escritorio\xampplite\htdocs\guardar_ prensa.php on line 19


  #2 (permalink)  
Antiguo 21/01/2008, 17:12
Avatar de GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Re: Problemas con alta.... :(

Te esta diciendo que no se pudo conectar a la base de datos, revisa que tengas permisos para conectarte a esa base de datos y que tu firewall se puede comunicar al puerto de la base de datos.

Saludos.
  #3 (permalink)  
Antiguo 21/01/2008, 19:24
(Desactivado)
 
Fecha de Ingreso: diciembre-2006
Mensajes: 225
Antigüedad: 17 años, 4 meses
Puntos: 1
Re: Problemas con alta.... :(

bro es problema de conexion revisa los puertos a ver porq lo tiene bloqueado si esta en un server podes hablarte con los del server para ver q te solucionan ok man
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 03:44.