[Ajuda] STR_TO_DATE
#3

tambйm nгo deu

PHP код:
[plugins/mysqlerror #1411 while executing query "INSERT INTO `users`(`Name`, `Password`, `Salt`, `Email`, `Online`, `IP`, `GPCI`, `birthdate`, `created_at`) VALUES ('e', 'e', 'e', 'e', 1, 'e', 'e', STR_TO_DATE('Leon_Souz', '66/m/Y'), now())": Incorrect datetime value: 'Leon_Souz' for function str_to_date 
PHP код:

gPlayerAge
[playerid] = " dia/mкs/ano " 
como eu transformo esse / que o cara digitou em ' , ' (virgula) ?


o STR_TO_DATE correto й com virgulas, ou seja, o cara digita com ' / ' por isso estб dando erro, eu acho..

>> ( SELECT STR_TO_DATE('21,5,2013','%d,%m,%Y'); )
Reply


Messages In This Thread
STR_TO_DATE - by Mitic0 - 11.08.2018, 14:33
Re: STR_TO_DATE - by AndreProgrammer - 11.08.2018, 14:36
Re: STR_TO_DATE - by Mitic0 - 11.08.2018, 14:41
Re: STR_TO_DATE - by AndreProgrammer - 11.08.2018, 14:45
Re: STR_TO_DATE - by Mitic0 - 11.08.2018, 14:47
Re: STR_TO_DATE - by AndreProgrammer - 11.08.2018, 14:52
Re: STR_TO_DATE - by Mitic0 - 11.08.2018, 14:55
Re: STR_TO_DATE - by AndreProgrammer - 11.08.2018, 15:04

Forum Jump:


Users browsing this thread: 1 Guest(s)