Answer the question
In order to leave comments, you need to log in
[Maps] Sending SQL via JS/PHP?
Good day.
There is Yandex map / Leaflet.
There is a DB like time -> array[];
Task: depending on time, draw an array[] array by accessing the database.
The database is PostgreSQL (or MySQL?).
Tell me how this can be done, purely in JS - read unsafe, PHP then?
or is there something better?
Thank you.
Answer the question
In order to leave comments, you need to log in
habrahabr.ru/post/126207
.square {
width: 100px;
height: 0;
border-top: 100px solid red;
border-right: 40px solid transparent;
}
There is a DB like time -> array[];Shta??????????? Maybe this kind of data?
draw array[] by accessing the databaseWhere are we drawing?
The database is PostgreSQL (or MySQL?)so there is a database or is it still being considered ???
Tell me how this can be done, purely in JS - I read it unsafelyIf you mean JS on the user's page - not so much unsafe as unrealistic, data exchange with the database is carried out on the server side, between the server script and the database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question