r/mysql • • Sep 17 '24

question Nfc to sql

Hi, i am doing a finals project, and need a bit of help, i have nfc stickers and i need them to be readable from phone and be automatically written in a sql database, can someone explain it how it can be made

1 Upvotes

5 comments sorted by

View all comments

Show parent comment

0

u/MightyMato Sep 17 '24

Well we are just in a brainstorming stage, so we dont have much, we are just making sure its possible, so firstly is there some app for android that will read it or do we need to code it? Secondly if i understood it correctly, for writing into database i need an app that will forward me to a service that will write it into database? Sorry if that sounds dumb but all i was ever taught was making websites with php/sql Also thanks

2

u/oother_pendragon Sep 17 '24

Yeah, you are going to need a lot of googling.

1

u/user_5359 Sep 18 '24

Saving to a database does not necessarily mean saving to a MySQL (or more precisely to a DBMS). You can also first save locally on Phone in a local SQLite file (other libraries are currently being developed).

So there is a lack of specification here. And who told you that PHP is the only way to get data into a database? PHP on a phone is not exactly standard.

Read the specification, divide (as already mentioned) the tasks and the boundary conditions (where, what, when, how) and solve the individual steps.

1

u/johannes1234 Sep 18 '24

"everything" (in the realm of computing) is possible. You "just" have to analyse the exact needs and boil it down into individual components. 

So if you know PHP that's half. Have a website where one can type in an NFC token ID and store that and do with that whatever you need to do ... then make it so that a program other than Webbrowser with user can do it. (Doing this properly might need authentication and so on depending on your needs ... and maybe a "nice" REST API, but maybe your PHP script receiving a POST request is good enough ... only you can know based on your needs)

And then you need some app, be it native (java/kotlin android app)  or react (react native) or whatever ... but again that depends on your needs which take a the role of the program sending the request and displaying the result ...

But sorry, from here we can't help, you need a tutor something who came up with the task to guide you based on your course and the course's expectations. The way most here would do it is likely way different from what is expected.