SQL Injection - An important lesson

Are you inserting user data into a database using PHP and looking for the best way to prevent SQL injection?