Question: I have a question. I have application for 3.0 api. I am using webview to show page. I have a question if webview correctly use https? I want to create shop and I want to use https. If are any problems with that protocol?

Answer: 
if `samaccountname` is a unique key, you can insert a new record or update an existing one like this:

```
INSERT INTO mytable(samaccountname, hometelephone)
VALUES ($samaccountname1, $hometel1),  ($samaccountname2, $hometel2), ...
ON DUPLICATE KEY UPDATE hometelephone = VALUES(hometelephone)

```
You cannot loop through a PHP array using MySQL. you can create a very sophisticated query, via looping thourgh arrays in PHP, and then execute that query, or you can get the whole db table to an array, then loop through that array, make necessary changes to it and then loop it again and update the changed parts of the table.

And also take a look at [SQL Stored Procedures](http://net.tutsplus.com/tutorials/an-introduction-to-stored-procedures/). ;)