Get the date on PHP and insert it into SQL
Hello:
I'm creating a little database in a store. I need that when someone "sells" something, it stays in a table , the name of the guy who sold it, what was sold etc.... I have all that, but I don't know how to save the date it all happened.
I have the table with the following atributes (or columns)
Vendor, Article, Date, Quantity.
Vendor article and quantity are int (just id's) and Date is a DATE type.
how can I get it from the computer? afterwords, if I want to make a search based on the date, will I have to write all of it ( as 12-3-200)?
Thanks
|