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)