Hi ,

can u help me

i don't know how to write php code for students ,they want to see their quzis

grade , also how can i put the courses on their profile ..

any body can give the idea plz

i must submit my project..

    you are asking somebody to provide a complete solution, but you need to start working on your project using online tutorials etc and then come back with any problems you need help on

    your project should be fairly easy to do - depending on what you already know!
    you need a database so you will need to learn some SQL as well

    if you start by learning how to store and recall data submitted by a form, you will have a basic grounding

      The question is rather vague and general. These forums are generally best suited for answering specific, narrowly focused questions to help you write the code. If, on the other hand, you just want someone to write code for you, that's what the Available Positions forum here is for. 😉

      Or you might want to look at http://php.opensourcecms.com to see if there is already a solution available that you could use to solve your requirements.

        oky this for display student courses , and the 'courseinfo.php' contains information about specific course that was clicked .i'm confusing what must to do .. i means how the program know this course cliked (hyperlink) to display the information..

        <?php
        require("noCache.php");
        $dbh=mysql_connect("localhost", "", "") or die (mysql_error());
        ?>
        <?php
        mysql_select_db("project");
        extract($_POST);
        $result = mysql_query("SELECT * FROM student s,course c WHERE sid='$username' and s.courseid=c.courseid");
        echo "<html><body>";
        echo "<table border='0'>";
        while($row = mysql_fetch_array($result))
        {
        echo "<tr><th><a href='courseinfo.php'>".$row['courseid']."AS:".$row['coursename']."</a></th></tr>";
        }
        echo "</table></body></html>";
        mysql_close($dbh);?>

          9 times out of 10 you should use a form with a submit button, instead of a hyperlink
          (no, target is not going to help you here)

          you have the beginning code to show the courses, but you need code to :
          a) access what is clicked
          b) record the action
          c) show what has been clicked and by who

          plus all the other bits that are needed to make everything work well

          but to explain all this is going to take a lot of writing when you should be able to find a good tutorial online
          do yourself a favour and do a basic tutorial first!

            cretaceous;10983598 wrote:

            9 times out of 10 you should use a form with a submit button, instead of a hyperlink
            (no, target is not going to help you here)

            you have the beginning code to show the courses, but you need code to :
            a) access what is clicked
            b) record the action
            c) show what has been clicked and by who

            plus all the other bits that are needed to make everything work well

            but to explain all this is going to take a lot of writing when you should be able to find a good tutorial online
            do yourself a favour and do a basic tutorial first!

            exactly what i want thnkx

            thnkx ALL 😉 also i have another qstions,will ask later

              cretaceous;10983598 wrote:

              9 times out of 10 you should use a form with a submit button, instead of a hyperlink
              (no, target is not going to help you here)

              you have the beginning code to show the courses, but you need code to :
              a) access what is clicked
              b) record the action
              c) show what has been clicked and by who

              plus all the other bits that are needed to make everything work well

              but to explain all this is going to take a lot of writing when you should be able to find a good tutorial online
              do yourself a favour and do a basic tutorial first!

              actuly,i don't know how to convert what u said to coding :$,i'm beginner

              i'm using a form but with botton near the course name and when click on the button go to the specific course , but i want when i click on the course name go to the description of specific course

                you need to understand how to use $_GET

                that allows you to add to your links:
                < a href='www.mysite.com/mypage.php?course=abc&anothervalue=xyz'>name of course</a>

                on receiving script you do:
                $course=$GET['course'];
                $anothervalue=$
                GET['anothervalue'];

                  cretaceous;10983704 wrote:

                  you need to understand how to use $_GET

                  that allows you to add to your links:
                  < a href='www.mysite.com/mypage.php?course=abc&anothervalue=xyz'>name of course</a>

                  on receiving script you do:
                  $course=$GET['course'];
                  $anothervalue=$
                  GET['anothervalue'];

                  what the meaning of abc &xyz

                  this hyperelink after what u told but there is no information it's a bank page

                  http://localhost:8080/project/courseinfo.php?course=courseid&anothervalue=xyz

                    abc and xyz are to show you that it could be anything
                    fill in with your own values

                    please do a tutorial!
                    do you expect to drive a car with no lessons?
                    do the basic home work first !

                      10 days later
                      cretaceous;10983720 wrote:

                      abc and xyz are to show you that it could be anything
                      fill in with your own values

                      please do a tutorial!
                      do you expect to drive a car with no lessons?
                      do the basic home work first !

                      thnk u cretaceous
                      my problem has been sloved and finished my project .PHP it interesting language but we must read a tutorial first as u said..

                      thnk u agin

                        well done - now you have a whole lot more knowledge than before!
                        now you should mark the thread resolved - from Thread tools menu

                          Write a Reply...