Hi, im trying to send a command using the address for example
localhost/install.php?Do=Load
thing is php wont seem to do it for me, maybe im just being daft or something, could someone have a look please??
The code is as follows
<?
$Style = urlencode("Address"
;
print("<a href='SiteMap.php?Order=$Style'>Order by Address</a>"
;
print("<BR>"
;
$Style = urlencode("Description"
;
print("<a href='SiteMap.php?Order=$Style'>Order by Description</a>"
;
?>
then on SiteMap.php
if ($Order=="Description"
{
$Site = mysql_query('SELECT * FROM siteindex ORDER BY Description', $db);
} else {
$Site = mysql_query('SELECT * FROM siteindex ORDER BY Address',$db);
}
but it doesnt register the value of Order.
Regards
JP
localhost/install.php?Do=Load
thing is php wont seem to do it for me, maybe im just being daft or something, could someone have a look please??
The code is as follows
<?
$Style = urlencode("Address"

print("<a href='SiteMap.php?Order=$Style'>Order by Address</a>"

print("<BR>"

$Style = urlencode("Description"

print("<a href='SiteMap.php?Order=$Style'>Order by Description</a>"

?>
then on SiteMap.php
if ($Order=="Description"

$Site = mysql_query('SELECT * FROM siteindex ORDER BY Description', $db);
} else {
$Site = mysql_query('SELECT * FROM siteindex ORDER BY Address',$db);
}
but it doesnt register the value of Order.
Regards
JP