I am currently making a lms in PHP. In the lms, the admin can upload a SCORM (1.2) file which the users will answer, and the result would be saved in the database. (Thought of a table in the form of: userID, scormID, grade)
I have looked through other options such as Moodle, but they don't have the features I need (even with modifications).
If it is not possible to handle SCORM, is there another format exported from storyline 2 that I can use?
Implementing a basic version of the server part required for SCORM1.2 is easy and here is a quiet long guide explaining the details: http://www.vsscorm.net/ - maybe this answers your question. I explicitly say "basic version" because there are many quirks and difficulties to handle if you'd like to support all features of SCORM and even more if you'd like to handle any kind of SCORM1.2 content.
Edit
I'm not well informed about storyline2, but if implementing SCORM is a practicable solution for you, here is a short abstract what you need to do:
First, you need to implement the import of the SCORM package. This is the easy part:
Second, you need to implement the runtime environment:
As I said, this is just an abstract, but there is a lot of literature about this subject. Here is one more source: http://scorm.com/scorm-explained/