I was informed that this query would work:
"select last_insert_id()"
i've tried:
$query = "select last_insert_id() as ds from gallery_pho";
$query = "select last_insert_id() as ds";
$query = "select last_insert_id()";
and they only give me '0' as a result... am I using this right?