<?php
$db_host = "localhostxxxx";
$db_user = "xxxxxxxx";
$db_pass = "xxxxxxxx";
$db_database = "xxxxxxxx";
$db = new PDO('mysql:host='.$host.';dbname='.$db_database, $db_user, $db_pass,array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8") );
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);
$nombre = $_GET["nombre"];
$ssql = "INSERT INTO prueba (nombre) VALUES (:nombre)";
$q = $db->prepare($sql);
$q->execute(array(':nombre'=>$nombre));
echo "data inserted!";
?>