enter image description here
I am trying to make a database of passport applicants who will be able to know the status of their passports through the html form that's shown in the image attached above. But, what's the best way to do this and by using which form of database? Thank you.
With just HTML you cannot do it.
Either go with server side apps like PHP and use jQuery so user wont see the page getting refreshed.
Or go with Node JS framework.
Follow the simple CRUD operation.
Its too much to type in this comment box.. so sharing the link.
https://www.taniarascia.com/create-a-simple-database-app-connecting-to-mysql-with-php/
Just use a REST Api to fulfill your requirement.There are lots of tutorials on various websites that you can learn those things.Simply CRUD operation means Create,Read,Update,Delete.
First of all study about databases and their usages.If you are going to use nodejs solution i'm recommending you for go to mongoDb.Or else if you are using PHP based solution, Mysql will be ideal.Hope this will help.
In my cases I use ASP.NET Model View Controller Framework with the Entity Framework, with MSSQL Databases. It does use C# for the server side, but I find it pretty easy to use since it generates the basic CRUD operations for you when you connect the database.
Here is a great tutorial on doing this: https://www.c-sharpcorner.com/UploadFile/4d9083/how-to-connect-ado-net-entity-framework-with-mvc-in-simple-s/
Good luck!
Related
I have just about got my head around how JavaScript frameworks like Backbone.js and Spine.js deals with the client-side state of a data model in regards to updating views etc. I am looking to build a web application with Backbone that syncs its model with a database. Most of the examples out there use Ruby, but I am currently much more comfortable writing PHP. I have experience with MySQL and MongoDB.
I am looking for a very basic, stripped down version, of a RESTful web application that uses Backbone and syncs with a database through PHP. I have found tutorials like this one and this one, however, even these are too complex for me to learn from.
It would be nice to have a very basic example. For example, a HTML form input, and a list. Enter into the input to add to the list. Of course, this data model will be synced to a database (preferably MySQL). Would anyone be able to provide me with the code for this example? I am comfortable with using a PHP framework like Slim also.
Once I understand how to sync created data to a database, I can then begin to grasp the rest (CRUD). I have seen very few tutorials out there on how to this at a basic level with PHP, so hopefully any support will benefit others too.
Have you seen this one from net.tuts? I think they will post a new tut soon with more details
Edit
And there are at least 2 similar questions here actually:
simple PHP code sample to serve backbone.js
Backbone.js How to use with PHP
I have a website for a client offering information from a database. But other websites want to show that information in their website, so my client ask me for it.
Since the begining I thought it might be something similar to the twitter widget. As I want to give out a code similar to this:
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({ ......
And other websites will show the information from my database.
But I cannot find a exactly example, I found this: http://tutorialzine.com/2010/03/who-is-online-widget-php-mysql-jquery/
But it is not exactly what I want.
My deployment is the following: In the server I've got a mySQL database and a website, I would like to create php and javascript code (or even jquery, but I'm not very expert with it) so other website could incorporate the information from the database in a secure mode.
Could anybody give a hint?
You'll need a RESTful service on your server which other sites can ping. You will use an AJAX request to get the information from that service.
The big piece of this for you will be creating a JavaScript object that has all the functionality you want. It is much easier to give people directions on how to use your REST API and let them implement it via AJAX on their own pages. If you really do want a full widget, you'll want to check out a lot of things. First is closures in JS to ensure you don't conflict with any of their variables. Also make sure you are good at developing cross-browser Javascript independent of libraries. And finally, you'll want to make sure your server is configured for cross-domain AJAX requests. Again, my recommendation is to set up a REST API for them, and let them do the dirty work.
There is an interesting tutorial about how to create a twitter widget using PHP and JavaScript on the nettuts website, I think you may find it useful.
Well, although it's not specific for PHP, this is by far the best resource I could find to this subject:
http://alexmarandon.com/articles/web_widget_jquery/
I want to implement a tagging system for entries in my database. I did some research and I guess that this is the best way to do it...however I'm not too experienced with MySQL (or PHP for that matter - I'm just making a sort of web app for fun) and thus I am confused on how to implement this.
Your going to need to create the database in MySQL and then you will need to use PHP to create the user interface (HTML) and the code to access the database. Since you are new I've listed out some getting started resources for each. Good Luck!
Here's some resources for getting started with MySQL:
http://code.google.com/edu/tools101/mysql.html
http://a.parsons.edu/~kosoyj/2009/spring/pgte_5044/2009/03/24/mysql-101/
http://www.killerphp.com/mysql/
http://www.webdevelopersnotes.com/tutorials/sql/mysql_database_introduction_mysql_beginners_tutorial.php3
And some for basics/getting started with PHP:
http://devzone.zend.com/article/627
http://www.homeandlearn.co.uk/php/php.html
http://www.webmonkey.com/2010/02/php_tutorial_for_beginners/
Learning PHP and MySQL
The link you provided is ideal. You should just start in on learning how to make a many-to-many relationship as the link explains. But what are you using to edit PHP or try out queries?
Hi I'm just after some advice/input.
I'm developing an application that has a MySQL backend, it has HTML pages that use jQuery to access PHP pages returning the data from MySQL in JSON.
Now, what I need to know is there a disadvantage to working like this.
The main advantage I can see that I can seperate the presentation layer and data access layer. Therefore it speeds up development once I have setup the objects in PHP.
One of the main disadvantages I can see (or I think I can see) is that Google won't be able to see the results inserted by jQuery Ajax/JSON.
Open to any advice, thanks in advance.
Regards, Andy
I strongly recommend that you enable your application to work for users without JavaScript support as well. If you do that you'll have a quick application for your visitors with JavaScript, you'll have a working application for visitors without and Google won't have any problems indexing it.
I want a CMS (Web based) to input the product catalog. But i won't use the CMS to display. Instead, i will need a api to retrieve the data, XML/JSON return is fine.
Is there any such a system? PHP language is preferred.
Use phpMyAdmin to input your catalog. Its forms will exactly match the structure of your database table.
What it sounds like you're looking for is just some generated database scaffolding. This Stackoverflow question and answer can probably point you in the right direction. Once you get the basic data entry forms created you can then start adding in your permssions and approval system.
Good luck and hope this helps some.
Doctrine with Zend Framework.