如何將變量($member_id
)傳遞到目標php頁面(會員資料詳細信息查詢)?通過JavaScript傳遞變量
///-----
echo '<div id="show_profile_box">Show Member Profile details
//MySQL Query to display member profile details</div>
<div id="display_member_id"><a href="show_profile.php"?member_id=$member_id">Display Member id</a></div>';
echo '<script>
$("#show_profile_box").hide(100);
$("#display_member_id").click(function() {
$("#show_profile_box").show(500);
});
</script>';
謝謝。讓我知道你是否需要更多信息。
*整個想法是顯示/顯示SELECTED成員資料的詳細信息。 *
這個問題如何與jQuery或MySQL相關?是'$ member_id' PHP變量嗎? –
是的,它是一個PHP變量。 –
從我對PHP的一點經驗來看,它應該像'... .....' –