Jump to content
php.lv forumi

paliidziet luudzu ar tipa replace scriptu(asap)


swf

Recommended Posts

datubaazee ir tabula, no 3. laukiem

 

|___id___|__datefrom__|__dateto__|

 

 

 

probza taada, ka datefrom and dateto (abi varchar) ir salikti tipa taadi:

 

datefrom: 24/09/05

dateto: 31/09/05

 

vajadzeetu baigi paliidziibu kaa vareetu vinjus paarveidot aatri par tipa:

 

datefrom: 2005-09-24

dateto: 2005-09-31

 

any ideas? :huh:

Link to comment
Share on other sites

vispar kaapeec date jaalie kaa varchar tips?

panjem nomaini uz date un peec tam ar sql funkciju date_format(dateto, "%Y-.%m-%d")

varbuut date_format sintakse nav isiti korekta, bet to var manuaali apskatiities.

Link to comment
Share on other sites

×
×
  • Create New...