Using SSL will only help you if the database is on a different server to the server that PHP is on.
The biggest hint is create a user named something like 'phpuser' and then use that for all PHP db access. You will need to explicitly grant them access to everything they need. Don't use the superuser account.
Also, make sure you're escaping ALL user input that you put in your SQL.
Chris