php3-list | 2000051
Date: 05/15/00
- Next message: Marian Vasile: "[PHP3] Damn it !!!!"
- Previous message: Richard Lynch: "Re: [PHP3] Registration database !"
- In reply to: Richard Kurth: "[PHP3] Making my WebPages search engine friendly"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
RK
My guess is that you need to add "phpinfo();" to the bottom of your script
to make sure that the value of $REQUEST_URI is what you expected ;-)
Try to debug by echo'ing ALL of the values that you are creating in your
"explode()" functions -- see below
See more below
HTH
TomH
At 07:23 PM 5/15/00 -0700, Richard Kurth wrote:
>I can't figure this out I have my links set up like this to pull data from
>my database
>
><A HREF='category.php3/$vcatid/$title'TARGET='_top'>".$r[title]."</A>
BTW - to be picky ;-) if you cut and pasted the above code - then you
really do need to add a _space_ before TARGET
>Using this method to extract the info to be used on the category page
>
>$res = explode("category.php3/", $REQUEST_URI);
echo "URI is $REQUEST_URI<BR>";
while(list($k,$v)=each($res)){
echo "Key $k - Val $v <br>";
}
>$vars = explode("/", $res[1]);
while(list($m,$n)=each($vars)){
echo "Key $m - Val $n <br>";
}
>$catid = $vars[0]; //now var1 holds value1
>$ptitle= $vars[1]; //and var2 holds value2
>
>But when I go to select another link It has doubled
><A
>HREF='category.php3/20/&Education'category.php3/20/Education/category.php3/3
>/Auto
> Why is this happening
>
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to php3-unsubscribe <email protected>
>To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
>To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
>To contact the list administrators, e-mail: php-list-admin <email protected>
--------------------------------------------------------------------
Strategic Business Systems (978) 745-2332
http://BusinessWebs.com/
--------------------------------------------------------------------
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Marian Vasile: "[PHP3] Damn it !!!!"
- Previous message: Richard Lynch: "Re: [PHP3] Registration database !"
- In reply to: Richard Kurth: "[PHP3] Making my WebPages search engine friendly"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

