1

(3 replies, posted in Database)

And for something more usefull, to use it as a function so you can call it when you need it.

function db_connect() {
$connect = mysql_connect("localhost", "username", "password", );
if(!mysql_select_db("database"))
   {
      return false;
   } else {
      return $connect;
   }
}

2

(12 replies, posted in General)

I have used many different editors in the past, but finally found UltraEdit. It has the functions I need and it's light enough.

For some small tasks I use SciTe.

3

(2 replies, posted in Code)

mysql_query("INSERT INTO info set info.username = $user, info.email = $email...info.created = NOW()");

I usually do something like that. I don't save the time to any variable like you are suggesting. I just fill it on the query. Type of the column is Datetime.