$sql = 'SELECT id FROM mood_user ORDER BY id DESC limit 1';
$result = $DB->get_field_sql($sql);
$newid=20140000+$result+1;
//echo $result.'sam';
?><?
But I think something is missing.
Do you achieve it?
THX
$sql = 'SELECT id FROM mood_user ORDER BY id DESC limit 1';
$result = $DB->get_field_sql($sql);
$newid=20140000+$result+1;
//echo $result.'sam';
?><?
But I think something is missing.
Do you achieve it?
THX