← prev | next →
Alfonso 2022-01-08 12:06:14
Hello Could you help me with this?
Alfonso 2022-01-08 12:06:26

1
Alfonso 2022-01-08 12:06:36

2
Alfonso 2022-01-08 12:07:23
I do not understand why the sentence if doesn’t work
Alfonso 2022-01-08 12:07:28
thanks in advance
Alfonso 2022-01-08 12:15:04

1
andrewdanilov 2022-01-08 12:40:00
Alfonso 2022-01-08 12:06:36
2
Replace single quotes to double quotes on prepare method.
Vladimir_Yudin 2022-01-08 12:40:09
Alfonso 2022-01-08 12:06:26
1
It is because $stmt->errorInfo() refers to the last statement that was successfully executed. Since $stmt->execute() returns false, then it cannot refer to that statement (either to nothing or to the query before).
andrewdanilov 2022-01-08 12:44:18
$stmt->execute() throws error because of table ‘$table’ does not exists. Single quotes not converting variables to its values. You need double quotes.
Alfonso 2022-01-08 12:47:05
I see, but I I have written with double quotes and keep not working
andrewdanilov 2022-01-08 12:51:30
Alfonso 2022-01-08 12:47:05
I see, but I I have written with double quotes and keep not working
Look at $stmt->errorInfo()
Alfonso 2022-01-08 12:54:09
array (size=3)
0 => string ‘42000’ (length=5)
1 => int 1064
2 => string ‘You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘])’ at line 1′ (length=148)
Alfonso 2022-01-08 12:54:28
yes you are right the problem is in the sql sintax but i do not see the error
andrewdanilov 2022-01-08 12:56:09
Alfonso 2022-01-08 12:54:28
yes you are right the problem is in the sql sintax but i do not see the error
Remove “]” in prepare()
Alfonso 2022-01-08 12:59:06
Oh!! Right
Alfonso 2022-01-08 12:59:19
But I am having a problem with another thing now
Alfonso 2022-01-08 13:00:23

1
Alfonso 2022-01-08 13:00:37
i have declared fecha as a timestamp
Alfonso 2022-01-08 13:00:54
the error now is : Field ‘fecha’ doesn’t have a default value’
Alfonso 2022-01-08 13:01:15
I thought field ‘fecha’ is going to fill automatically
Alfonso 2022-01-08 13:07:27
I saw the error, thanks a lo man
andrewdanilov 2022-01-08 13:07:32
Alfonso 2022-01-08 13:01:15
I thought field ‘fecha’ is going to fill automatically
You need to use ‘… fetcha TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP’
Alfonso 2022-01-08 13:07:49
yes tou are right
Alfonso 2022-01-08 13:08:21
man I really apreciatte your effort, thanks a lot !!! I am starting in this field.
hiunlockapple 2022-01-09 23:44:53
w11 PhpStorm 2021.3 full ??
zmurf 2022-01-09 23:52:44
hiunlockapple 2022-01-09 23:44:53
w11 PhpStorm 2021.3 full ??
heker
Rahul 2022-01-11 11:32:01
Hiring for Software Engineer.
*Company Name* :- Govt. organization.
*Qualifications* :- MCA/BCA
👉 *Experience* – 1 to 2 Year in *HTML,PHP and Drupal*
👉 *Designation* – Software Engineer
👉 *Job Location* – Noida Sec-24
👉 *Salary* – 3.60 LPA
If you interested then please share your cv in below What’s app number or mail id:- Rahul.b@randstad.co.in
Rahul(HR)
(Randstad India Pvt Ltd)
8178482052
Pooja Kumari 2022-01-11 17:25:34
Hiring for PHP developer for bangalore
4 to 8 yrs
Immediately or 15days
P.kumari@potentiam.co.uk
Plz share cv
dev_arman 2022-01-12 08:38:01
Привет.
Когда использую Reformat Code (opt+cmd+L) в JS файлах, то шторм удаляет неразравный пробел в коде, в других файлах такого нет. Как можно такое поведение отключить?
Clintrough 2022-01-12 10:23:16
у тебя может быть указана правая граница страницы (для печати обычно) и шторм бьет строки относительно нее
dev_arman 2022-01-12 10:48:55
Clintrough 2022-01-12 10:23:16
у тебя может быть указана правая граница страницы (для печати обычно) и шторм бьет строки относительно нее
вроде нет. в любом месте удалят
Clintrough 2022-01-12 11:05:55
тогда вопрос, как ты ставишь неразрывные пробелы в коде?
dev_arman 2022-01-12 16:20:10
Clintrough 2022-01-12 11:05:55
тогда вопрос, как ты ставишь неразрывные пробелы в коде?
Ставлю горячими клавишами на Мак:
shift + opt + пробел
Под винду точно не знаю как.
Clintrough 2022-01-12 16:35:26
мм.. наверное тогда нужно копать в сторону файл темплейтов. скорей всего неразрывных пробелов нет там,а реформат как раз использует правила, которые описаны в форматах
dev_arman 2022-01-12 17:02:23
Clintrough 2022-01-12 16:35:26
мм.. наверное тогда нужно копать в сторону файл темплейтов. скорей всего неразрывных пробелов нет там,а реформат как раз использует правила, которые описаны в форматах
cпасибо) попробуй поковырять настройки)
← prev | next →