Brian V Bonini schrieb:
> What's wrong with this snippet of code that would make it stop working
> after upgrading from 4.0.6 to 4.3.0
> 
> 
> <?php
> 
> if (!$id) {
> include "pagetop.inc.php";
> }
> if ($id == 1) {
> $title = "xxx";
> include "pagetop.inc.php";
> ?>
>     <p>Stuff</p>
> 
> <?php } ?>
> 

look at http://www.php.net/manual/en/tutorial.oldcode.php

it is cause $id isn't set to the value of your uri anymore !
set "register_globals on" in your PHP.INI or use $_GET['id']


-- 
 @  Goetz Lohmann, Germany   |   Web-Developer & Sys-Admin
\/  ------------------------------------------------------
()  He's the fellow that people wonder what he does and
||  why the company needs him, until he goes on vacation.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to