How do I pass multiple values to php form the url. I'm trying to do a ID and Page Number system. So, I can say like document 1 page 4. Example http://load.phtml?id=1&page=4
and the document with id:1 will load the page with the vaule page_num:4.
Thanks for your help in advance sorry for being such a newbie.
<?php
if($id$page) {
@MYSQL_CONNECT("localhost","","");
@mysql_select_db("mx6power");
$query = "select page_num,head,path,content from mx6power where id=$id";
$result = @MYSQL_QUERY($query);
$page = @MYSQL_RESULT($result,0,"page_num");
$heading = @MYSQL_RESULT($result,0,"head");
$paths = @MYSQL_RESULT($result,0,"path");
$contents = @MYSQL_RESULT($result,0,"content");
echo "<head><title>$heading</title></head>";
echo $id;
echo "<br>";
echo $page;
echo "<br>";
echo $heading;
echo "<br>";
echo $paths;
echo "<br>";
echo $contents;
echo "<br>";
);
?>