Je moet ingelogd zijn om te stemmen.
<?php $query = "INSERT INTO table (veld) VALUES ('test')"; mysql_query($query) or die(mysql_error()); $lastID = mysql_insert_id(); ?>
<?php $query = "INSERT INTO table (veld) VALUES ('test')";mysql_query($query) or die(mysql_error()); $lastID = mysql_insert_id(); ?>
<?php $qry = "SELECT * FROM tabel ORDER BY id ASC LIMIT 1"; $res = mysql_query($qry); while($obj = mysql_fetch_object($res)){ echo $obj->id; } ?>
<?php$qry = "SELECT * FROM tabel ORDER BY id ASC LIMIT 1";$res = mysql_query($qry);while($obj = mysql_fetch_object($res)){ echo $obj->id;}?>