I am creating a poll in php. I have a table with an id column.

When a user submits a choice, I want the php to first query the database and check whether the table "id" has the id of the current user. 

I am pretty new at mysql, can someone help me with the query?
['https://Stackoverflow.com/questions/1992827', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/107922/']
If it's *necessary* to have the `div.someElement` in the HTML, the best CSS/HTML way to do that would be to add an extra `div` around the added content that has the padding property

```
.someElement > div{padding-top:5px;}

<div class="someElement"><div>Content</div></div>

```

Otherwise, do as Pekka says, or take a look at having javascript do it for you.
At the point where you populate the optional `div`, if there is no text to put in it, try changing the CSS `display` property to `none.` According to [this source](http://webdesign.about.com/od/css/f/blfaqhidden.htm) (and others), `display: none` removes the element completely from the document. It does not take up any space, even though the HTML for it is still in the source code.