//database connessione
$user = 'root';
$password = 'root';
$db = 'personedati';
$host = 'localhost';
$port = 3306;
$link = mysql_connect(
"$host:$port",
$user,
$password
);
$db_selected = mysql_select_db(
$db,
$link
);
//fine database connessione
//inserimento dati in database
INSERT INTO personedati (nome,cognome,age)
VALUES (Ucwords($name),Ucwords($lastname),$age);
//fine inserimento dati in database
$user = 'root';
$password = 'root';
$db = 'personedati';
$host = 'localhost';
$port = 3306;
$link = mysql_connect(
"$host:$port",
$user,
$password
);
$db_selected = mysql_select_db(
$db,
$link
);
//fine database connessione
//inserimento dati in database
INSERT INTO personedati (nome,cognome,age)
VALUES (Ucwords($name),Ucwords($lastname),$age);
//fine inserimento dati in database