PHP MySQL - For every 6 rows insert a div?

后端 未结 3 872
忘了有多久
忘了有多久 2021-01-29 12:28

PHP:

prepare(\"SELECT * FROM `users`\");
$stmt->execute();
$result = $stmt->get_result();

//
3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-11-21 00:56

    I just changed @Jotne's answer for "for loop".

    for i in `seq 11 20`; do host myserver-$i | awk -v i="$i" '{print "myserver-"i" " $4}'; done
    

提交回复
热议问题