Hi
i`m trying this script to run and i get the following error.
Enter your name
tman
Enter your surname
smith
-bash: ./500: line 20: unexpected EOF while looking for matching `"'
-bash: ./500: line 21: syntax error: unexpected end of file
--------------------------------------------------------------------------
#!/bin/bash
echo "Enter your name"
read name
echo "Enter your surname"
read surnameINSERT into data
echo "Enter your dob
read dob
mysql -uroot -p -hlocalhost
Age ()
{
Age=dob -2011
}
create database info;
CREATE TABLE data (id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
name VARCHAR(1000),
Age INTERGER,
PRIMARY KEY (id)
);
INSERT into data ( name, surname, Age ) VALUES ("$name", "$surname", "$Age");