A user can add multiple tags to describe the picture, separate them with commas. I don't know how to split tags and add them into the database, because I can't tell how many words he would write. I know I should use functions count and foreach, but I don't know how.
$tag_title=mysql_real_escape_string($con, $_POST['tag_title']);
$array_title=explode(',', $tag_title);
Any help would be much appreciated ...