Re: problem of transmitting variable from page to another page.
| From: | El Bekko | Date: | Sat, 03 Dec 2005 12:51:20 +0000 |
| Subject: | Re: problem of transmitting variable from page to another page. | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-40755@lists.php.net to get a copy of this message | ||
Mohamed Yusuf wrote:
I am transmitting variable from one of my pages and I would like to match that variable into mysql data. it won't return data. my code is this. <?php for ($j=A; $j <= Z; $j++) { echo "| <b><a href='alpha.php?artist=$j'>$j</a></b> |"; if ($j == Z) { break; } } ?> this code in my index page prints alphabetical letters from A-Z. and I woul like to transmit that variable into my alpha.php page and select mysql database what ever the value of $j is, but i have problem I can't figured out what is wrong. can somebody help me. Try<?php for ($j=A; $j <= Z; $j++) { echo "| <b><a href=\"alpha.php?artist=$j\">$j</a></b> |";
if ($j == Z){
break;} } ?> I'm using a similar thing, except my data comes from a database and then refers to a page. And it works fine (check http://icstrategy.midgetforhire.com/Strategies.php). If this doesn't work, it's odd :P