Connecting to database Create Read Update Delete
First, create a WinForms application in Visual Studio. Click on button and write the code below. Change YOUR_URL and your_page. This code block will post our params same as HTML forms. Here is our your_page.php You will see response from your_page.php when you submit your form from our C# application.
Ultimately dumb example, which posts login information to php backend then backend sends result back as json. Login.db Login.php App.js
Here is a silly example to use Chart.JS . However, we are using advantages of PHP. I personally do not recommend to use that way in production. Maybe the second way? We have a database with 3 columns. Embedded PHP Code Second way. Smarter Maybe???
Here is a simple PHP SQLite3 User Login example. First create our database called Login.db in SQLite3. You will want to insert sample data in that database. Let’s create our HTML form. Login.php