Mysql 发布答案时,请添加评论或修改原始帖子。如果您修改了原始帖子,请使用分隔符(例如水平规则)和/或标题(例如更新:)开始编辑,这样就可以清楚地看到您提供了原始问题的更新。 SELECT A.`id` , A.`ip_adress` , A.`message_c
发布答案时,请添加评论或修改原始帖子。如果您修改了原始帖子,请使用分隔符(例如水平规则)和/或标题(例如更新:)开始编辑,这样就可以清楚地看到您提供了原始问题的更新。Mysql 发布答案时,请添加评论或修改原始帖子。如果您修改了原始帖子,请使用分隔符(例如水平规则)和/或标题(例如更新:)开始编辑,这样就可以清楚地看到您提供了原始问题的更新。 SELECT A.`id` , A.`ip_adress` , A.`message_c,mysql,sql,Mysql,Sql,发布答案时,请添加评论或修改原始帖子。如果您修改了原始帖子,请使用分隔符(例如水平规则)和/或标题(例如更新:)开始编辑,这样就可以清楚地看到您提供了原始问题的更新。 SELECT A.`id` , A.`ip_adress` , A.`message_count` , B.`user_id` , B.`notice_id` , B.`subject` , B.`Description` FROM `ip_register` LIMIT 1 AS A INNER JOIN `user_sho
SELECT A.`id` , A.`ip_adress` , A.`message_count` , B.`user_id` ,
B.`notice_id` , B.`subject` , B.`Description`
FROM `ip_register` LIMIT 1
AS A INNER JOIN `user_shout` AS B
ON B.`user_id` = A.`id`
WHERE ip_adress='$ip' AND NOT message_count='0'
LIMIT 5
SELECT A.`id`,
A.`ip_adress`,
A.`message_count`,
B.`user_id`,
B.`notice_id`,
B.`subject`,
B.`Description`
FROM (SELECT *
FROM `ip_register`
WHERE `ip_adress` = '$ip'
AND `message_count` <> '0'
LIMIT 1) A
INNER JOIN (SELECT *
FROM`user_shout`
LIMIT 5) B
ON B.`user_id` = A.`id`;
$sql = "
SELECT A.`id`,
A.`ip_adress`,
A.`message_count`,
B.`user_id`,
B.`notice_id`,
B.`subject`,
B.`Description`
FROM (SELECT *
FROM `ip_register`
WHERE `ip_adress` = '$ip'
AND `message_count` <> '0'
LIMIT 1 ) A
INNER JOIN (SELECT *
FROM`user_shout`
LIMIT 5) B
ON B.`user_id` = A.`id` ";
echo '
<div class="dropdown">
<div class="chip">
<b>'. $row['message_count']. '</b> New
</div>
<div class="dropdown-content">
'. $row['subject']. '
</div></div>' ;