delete contents of a column in a table using button
<p>I have a table named "users" in my database. My table has 2 columns, "user_id" and "profile". user_id keeps the id of the user that is currently logged in. The profile keeps the url of image that the user has uploaded in his profile page. All I want is to create a button that will delete the contents of profile column for the user that is logged in. Any idea how to move on?</p>

<pre><code>&lt;?php                       
function deleteimage($user_id){
$sql="DELETE `profile` FROM `users`  WHERE 'user_id' = $user_id;";
$result=mysql_query($sql) or die("Error when trying to delete...");
}
?&gt;

&lt;input type="button" value="Delete"&gt;
</code></pre>
