Run sql dump in your Mysql server, then Put the codes in your server. This webservice always gives JSON output.
This project is created for who wants to learn basic PHP webservice. So it is for PHP beginners.

We have just one table whose name is "users". Here is its sql:
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`unique_id` varchar(64) CHARACTER SET utf8 NOT NULL,
`name` varchar(50) CHARACTER SET utf8 NOT NULL,
`email` varchar(100) CHARACTER SET utf8 NOT NULL,
`encrypted_password` varchar(64) CHARACTER SET utf8 NOT NULL,
`salt` varchar(16) CHARACTER SET utf8 NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

You can add/login a user with using GET or POST. There is more explanation in README.txt file.

Project Activity

See All Activity >

License

Creative Commons Attribution License

Follow PHP Login Webservice with JSON

PHP Login Webservice with JSON Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Ratings

★★★★★
★★★★
★★★
★★
1
0
0
0
0
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5

User Reviews

  • Hello, Thanks for such a good post about webservice in POST and GET, but please add how to login and register using POST method as well, and also let me know the code for how to add image as well in database n code for it...
Read more reviews >

Additional Project Details

Intended Audience

Developers

Programming Language

PHP

Database Environment

MySQL

Related Categories

PHP Software Development Software

Registered

2013-12-24