ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-db
php-db
[PHP-DB] Re: problem of transmitting variable from page to another page.
by El Bekko other posts by this author
Dec 3 2005 4:52AM messages near this date
[PHP-DB] problem of transmitting variable from page to another page. | [PHP-DB] problem of transmiting variabl into another page?
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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Mohamed Yusuf
El Bekko

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved