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
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
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