Don’t Write Code In The Dark…
I may be showing my age a little bit here but I remember watching Are You Afraid Of The Dark? on Nick as a kid. It was quite a cheezy show, but hey what do you expect.
Do you know what happens to people during sensory deprivation? (A brief introduction [...]
There will be times when you will need to retrieve the last auto id on a table where you just did an insert. They way to do this is as follows:
<?php
$link = mysql_connect(‘host’, ‘user’, ‘pass’);
if(!$link)
{
die(‘could not connect: ‘. mysql_error() ) ;
}
mysql_query(“INSERT INTO table (field) values (‘val1′)” );
echo “Last ID is “.mysql_insert_id());
Be sure you do [...]