-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
evo-calendar with MySql-Database #1
Comments
Hello Eberhard, thank you for your appreciation to my work! :)
This project is not yet finished because of my work, so I would like to say
sorry for its lack of features.
Regarding to your questions, you can feed the calendar with your fetched
data (from the database) and past it to option called
'calendarEvents',
See
https://github.com/edlynvillegas/evo-calendar#calendarevents-options-example
for
example.
Feel free to contact me again if you have any questions.
Thankyou. :)
- Edlyn
…On Wed, Feb 12, 2020 at 6:20 PM eberhardst ***@***.***> wrote:
Hey Edlyn Villegas,
many thanks for your great work.
Is there a way to connect the calendar to a mysql database?
Best wishes
Eberhard
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=AJMWWYZLV6JVDQJZQXGKBLTRCPEONA5CNFSM4KTWZH42YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IM4LUFA>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJMWWY5Z3T7GNEJMVVTZ4LLRCPEONANCNFSM4KTWZH4Q>
.
|
@eberhardst it work with PHP well if you echo your database value with php inside the javascript where it marking the event, then it will work like a charm! |
Hello realjimjim, do you have any example? |
as you can see from the example:
just fetch the data from your database and echo it here using php, for example here i using foreach to replace the example code, you can use for loop or while loop too:
anyway this is just one of the many method, you can use any other better method than mine for apply. :) |
hi, you hace the example in JS,becouse i have the json in php, but the function eventcalendar doesnt work |
Iam Calling the event like this ---> 'calendarEvents': 'calendar.php' [{"id":14,"name":"sdfsdf","date":"2020/06/23","type":"event","everyYear":"false"},{"id":9,"name":"Eliminar los fallidos","date":"2020/06/23","type":"event","everyYear":"false"},{"id":11,"name":"TAREA LEO","date":"2020/06/23","type":"event","everyYear":"false"},{"id":12,"name":"Prueba dsfsdf","date":"2020/06/23","type":"holiday","everyYear":"false"},{"id":8,"name":"ingreso datos nuevo cliente","date":"2020/06/23","type":"holiday","everyYear":"false"}] whats is wrong ?? |
Hello @baaaun, 😄 I tried the JSON you provided and it worked perfectly.. Kindly check how you return the JSON from that file calendar.php |
Hey Edlyn Villegas,
many thanks for your great work.
Is there a way to connect the calendar to a mysql database?
Best wishes
Eberhard
The text was updated successfully, but these errors were encountered: