How do i do this. Here is my code`
$insert = "REPLACE INTO drinks SET
name='".$name2."', category=' ".$category2." ', date=CURDATE()";
if (@mysql_query($insert)) {
echo '<h4 class="alert_info">Drinks added</h4>';
} else {
echo 'Error adding event: ' .
mysql_error() . '';
}