Hello Todd,
It sounds like register globals are not enabled and your code relies on
register globals being enabled, register globals now defaults to off.
If you have a recent version of PHP (>= 4.1) you should use the super
globals, most likely you are looking for $_GET.
You could change your code to $Query = "SELECT * from projects where
sub_task='{$_GET['Sub_Task']}'"; which should work.
You can find out more about the predefined variables at:
http://www.php.net/manual/en/language.variables.predefined.php
If you absolutely need to you can also turn register globals back on
either from php.ini or by using .htaccess.
Jason
On Fri, 2003-01-31 at 22:46, Todd Barr wrote:
> Hello all
>
> I am having issues passing vars in the url
>
> example
>
> here is my url
> http://localhost/tsatest.php?Sub_Task=2
>
> and here is my code
> $link = odbc_connect( 'TSA','','');
> $Query = "SELECT * from projects where sub_task='$Sub_Task'";
> $Result = odbc_do($link, $Query);
>
> All this returns is a blank screen.....
>
> any suggestions?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php