include 'core/init.php';
include 'includes/overall/header.php';
$post_id = $_GET['post_id'];
$check_like = mysql_query("SELECT liker, liker_username FROM `likes` WHERE `post_id`='$post_id' ");
while($run_check_like = mysql_fetch_assoc($check_like)) {
$post_liker[] = $run_check_like['liker'];
$post_liker_profile[] = $run_check_like['liker_username'];
}
include 'includes/overall/footer.php';
배열 하나에 $ post_liker이고; 배열 2는 $ post_liker_profile입니다.이차원 배열로 동일한 길이를 갖는 두 개의 배열을 결합하는 방법
나는 sth를 울리고 싶습니다. as $ post [$ post_liker] [$ post_liker_profile];
'post_id' 필드에 SQL injection exploit이 있음에 유의하십시오. 'intval()'또는'addslashes()'와 같은 방식으로 위생 처리하십시오. – Codecat