I try to insert values using SQL command for a created and modified field. Is this possible or it can not be used as an SQL command. An example: 2011-09-12 20:20:52
Another field is UUID value.
Should be used only PHP and fill in all values in the particular format?
It is possible. Show us the problem you’re having and someone will know why it’s causing you trouble. But those look like datetime values to me, not UUIDs.
Once you add in the values to your query, what’s the actual problem you’re having?
I’d really recommend you stop using the old mysql_ functions as you are doing in your getNewUUID() function - they’ve been removed from PHP for quite a few years now, after being deprecated for many more. Use mysqli or, my preference, PDO instead.