Please, don't use `mysql_*` functions to write new code. They are no longer maintained and the community has begun [deprecation process](
http://goo.gl/KJveJ). See the [*red box*](
http://goo.gl/GPmFd)? Instead you should learn about [prepared statements](
http://goo.gl/vn8zQ) and use either [PDO](
http://php.net/pdo) or [MySQLi](
http://php.net/mysqli). If you can't decide which, [this article](
http://goo.gl/3gqF9) will help you. If you pick PDO, [here is good tutorial](
http://goo.gl/vFWnC).
al' aj'