How to make below code safe from sql injection.
PHP Code
global $wpdb;
if($wpdb->insert(
'votes',
array(
'votes' => $votes,
'competition' => $competition,
'uid' => $uid
)
) == false) wp_die('Database Insertion failed'); else echo 'Database insertion successful<p />';