$sql = "SQL query here";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while($row = mysql_fetch_array($result,MYSQL_ASSOC)) {
$client_name = $row['client_name'];
//-- step 1 : count how many 'client_name' in $result
//-- step 2 : IF more than 5, do something...
}
}
位于help-block
内。我使用bootstrap + form validator插件
form-group
答案 0 :(得分:0)
试试这个:
.form-group.has-error .help-block {
overflow:hidden;
}
答案 1 :(得分:0)
.form-group.has-error .help-block {
position: absolute;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}