Me párese mal que no respondan pero me AUTO RESPONDO DE TANTO MATARME BUSCANDO LA SOLUCIÓN ES :
Código PHP:
Ver original<?php
//Esta linea es para incluir el archivo con las variables
include ("conexion.php");
/* CONECTAR CON BASE DE DATOS **************** */
$link = mysql_connect ($host, $user, $passw) or
die ("<center>No se puede conectar con la base de datos\n</center>\n");
/* ********************************************** */
/* CONECTA CON LA BASE DE DATOS **************** */
/* ********************************************** */
//REALIZAR CONSULTA
$sql = "INSERT INTO datos VALUES (NULL,'".$_POST['Notificastes']."')";
if (! $result){
echo "La consulta SQL contiene errores.".mysql_error();
}else {echo "<center><font color='RED'>DATOS INSERTADOS CORRECTAMENTE</font>
<br/>
<a href='http://localhost/Buscador/'>Volver</a>";
}
?>
lISTO AHORA EL OTRO ARCHIVO CONEXIÓN SERIA
Código PHP:
Ver original<?php
$host = "localhost";
$user = "root";
$passw = "swt";
$db = "buscador";
?>