$sql="INSERT INTO wp_comments (comment_post_ID, comment_author, comment_date, comment_content, user_id)
VALUES
('$qID', '$author', '$dro', '$content', '$_SESSION[user_id]')";
$result = mysql_query($sql);
die(last_insert_id());
當我運行此代碼時,我只看到白色屏幕,所以last_insert_id()似乎沒有返回任何值...我做錯了什麼?mysql_insert_id不返回任何東西
使用mysql_error查看錯誤 – 2010-07-21 14:28:01