is not working PPN.. it returns
Array instead of the value.
FireFly, can you post the exact line please? i need to make a query on this. here it is what i try to do:
PHP Code:
$DB_site->query("INSERT INTO settinggroup (settinggroupid,title,displayorder) VALUES (NULL,'".addslashes($title)."','$displayorder')");
echo "Adding settinggroup data... Done. <font color='#006699'>settinggroup</font> table populated.<br>\n";
$settinggroupid=$DB_site->query_first("SELECT LAST_INSERT_ID() FROM settinggroup");
$DB_site->query("INSERT INTO setting VALUES (NULL,$settinggroupid,'News forum ID','newsforumid','15','The specified forum will contain threads viewed on the main page only.','',0)");
echo "Adding setting data... Done. <font color='#006699'>setting</font> table populated.<p></td>\n";
i need to call the last ID from settinggroup and insert it as a value into setting. let me know where i do it wrong.