When I enter data from php to sql, it is accepted only once. I cannot enter more than one value. Is there a solution? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

When I enter data from php to sql, it is accepted only once. I cannot enter more than one value. Is there a solution?

18th Apr 2022, 1:32 PM
hawraa
hawraa - avatar
7 Answers
0
Show us your query and db schema
18th Apr 2022, 2:53 PM
Calviղ
Calviղ - avatar
0
It receives one element when I type a new element it does not receive it!!
18th Apr 2022, 3:08 PM
hawraa
hawraa - avatar
0
mysqli_connect should be run first before mysqli_query
19th Apr 2022, 7:06 AM
Calviղ
Calviղ - avatar
0
The code is complete with the calculator and works and is connected to sql, but the problem is that it receives data for one time
19th Apr 2022, 7:11 AM
hawraa
hawraa - avatar
0
Try to connect the db first, then query, you will solve the issue.
19th Apr 2022, 9:35 AM
Calviղ
Calviղ - avatar
0
i think this article will help you "(The only proper) PDO tutorial - Treating PHP Delusions" https://phpdelusions.net/pdo
19th Apr 2022, 11:43 PM
Zayzou
Zayzou - avatar