I have just started to learn CI, today in a small program, the process is the text box to enter the student name, button click Submit after the query database of how many points the student tested
Now the problem is that I have no problem with the local test, but after uploading to the server, I am prompted that the error is
404 Page Not Found
The page you requested is not found.
I think it should be the address of the action submitted wrong, please help me to answer the thank you
My form form is written like this.
My model Code is
Class Getdb_model extends Ci_model {public Function GetResult () {/ * here Combine SQL statements *//* $cname = $this->input-> Post (' cname '); $cert = $this->input->post (' Ccert '); Print_r ($cname);p Rint_r ($cert), */ $cname = $this->input->post (' cname '); $cert = $this->input->post ( ' Ccert '); $cname _item = ' username '; $data = $this->db->where (Array (' username ' = = $cname))->get (' Exam_resu ') Result_array (); return $data; }}
My controller model is
Load->model (' Getdb_model ', ' get '); $data [' CJ ']= $this->get->getresult (); /* Next Call a view * /$this->load->view (' result ', $data);}}
The code of the view where I finally showed the result is
Student Name |
Ticket Number |
Single Choice |
Multi-choice |
Blank questions |
Drawing questions |
Brief answer |
Calculation questions |
Test questions |
Score |
|
|
|
|
|
|
|
|
|
|
Reply to discussion (solution)
I'm not going to be able to change this, but I 172.0.0.1 it when I'm in the local test.
Is it a question of the session?
I am a novice do not understand, ask for answers thank you
After the output, is the address of the action correct? If it is correct, do you use Urlrewrite? is the urlrewrite on the server configured correctly?
After the output, is the address of the action correct? If it is correct, do you use Urlrewrite? is the urlrewrite on the server configured correctly?
The address after the output is correct, but my server is Ali Light cloud server, so I do not know which one you say how to modify, how should I modify?
Thank you
After the output, is the address of the action correct? If it is correct, do you use Urlrewrite? is the urlrewrite on the server configured correctly?
The address after my upload server is: Www.webside.com/html/cxcj/index.php/getresult/index
is correct please how to set Urlrewrite
No domain name, there is a path on the line! The Domain browser will fill in
No domain name, there is a path on the line! The Domain browser will fill in
Whether it's me or not, it's all 404 Page.
404 Page Not Found
The page you requested is not found.
Will it be a server problem?? ~
I have no problem with the local test, but put on the server is page not found, ask everyone to answer why ~
Thank you, the action is 404 after you click the button.
I've solved the loose powder