PHP MySQL - For every 6 rows insert a div?

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

PHP:

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

//
3条回答
  •  故里飘歌
    2020-11-21 01:18

    I had to insert date at the beginning of the lines of a log file and it's done like below:

    DATE=$(date +"%Y-%m-%d")
    awk '{ print "'"$DATE"'", $0; }' /path_to_log_file/log_file.log
    

    It can be redirect to another file to save

提交回复
热议问题