News for hackers. Stuff that matters.
Re:PHP RESTful API with an example MySQL database. by blueicelt2004 on Friday May 16, 2014 @01:44AM (#7753944)
I like this but just something small, in api.php at line 341/345 you check if $table is articles and inside the same ifcheck you check again, the same thing is done at 412/416

		} else if ($table=="articles") {
			if (empty($data->article_id)) {
				$this->data_object->send_response(400);
			} else {
				if ($table=="articles") {
Re:PHP RESTful API with an example MySQL database. by karlhadwen on Saturday May 17, 2014 @08:26PM (#7761641)
Didn't spot that, will take a look, thanks!