PHP mysql auto insert timestamp

后端 未结 4 1698
萌比男神i
萌比男神i 2021-02-14 02:32

Say I have a table name auto_parts with these fields. id, part, price, timestamp and I insert a new row via php as so:

$query = \"insert into auto_p         


        
4条回答
  •  故里飘歌
    2021-02-14 02:50

    Do it in SQL itself instead of passing it ... its more efficient ... This is the corresponding post:

    Auto TimeStamp new entry to DB (phpMyAdmin)

提交回复
热议问题