I'm wondering where "section" "a" "id" and "2" come from. Is there some tutorial out there that can explain these to me? I don't understand. Thanks

    everything up to ? is the web page address
    after the ? sign you have parameters
    in this case you have
    $section = "a"
    $id = 2

      I realize that, but how are they defined?

        This is a difficult question to answer because we have no idea where it's defined. Odds are there is a database that keeps track of sections and ids. So one has a script that generates links to all sections and a user clicks on one, then a script shows all ids for that section and a user clicks on one and then I guess this views the contents of data for that section and id.

        But anyway, maybe this will help:
        http://www.faqts.com/knowledge_base/view.phtml/aid/5424

          You could create a link and define the variables right there

          <a href="newpage.php?var1=4&var2=9">

          That would be the same as doing

          $var1 = "4";
          $var2 = "9";

          Except by doing this, the variables will be passed on with those values to newpage.php

          If you have $var1 already defined, and just want to pass that value on to newpage.php

          <a href="newpage.php?var1=<? echo $var1; ?>">

          Cgraz

            page.php?section=a&id=2 ?????

            page.php has some code that take variables(from url) section and id. Try page.php?section=fefwef&id=90000 what happened

            I guess section and id is refernce variable..(page.php?section=$value&id=$value)

            ok.. I m just writing quick notes that might give u some idea

            let say I got a table call employee

            as follow

            emp_id|emp_name|emp_location|emp_desc

            data are :

            1|John|4|Expert
            2|netmastan|6|still beginer

            Now let say we want to findout employee details by emp_id and emp_location.

            We write a function in index.php that will display employee details just by emp_id and emp_location.
            (ie.index.php?action=empdetials&emp_id=1&emp_location=6)

            Here is function

            
            function empdetials($emp_id,$emp_location) {
            
            $result=mysql_query("Select emp_id,emp_name,em_location,em_desc where emp_id=$emp_id AND emp_location=$emp_location",$dbi);
            //$dbi is datbase connection
            
            list($emp_id,$emp_name,emp_location,emp_desc)=msyql_fetch_array($result);
            
            echo "#$empd_id.Employee Name :$emp_name .Employee locaton :$emp_location<br> Description:$desc";
            
            }
            
            
            switch($action) {
            
            case "empdetials":
            empdetials($emp_id,$emp_locatoin);
            break;
            
            }
            
            

            So, I can use now . index.php?acton=empdetials&emp_id=$emp_id&emp_location=$emp_location
            (ie.index.php?acton=empdetials&emp_id=1&emp_location=6)

              Write a Reply...