|
Posted by Roy Kaldung on 05/11/07 07:50
Bob Bedford wrote:
> HI all,
> Weird problem....
>
> in the file queries.inc.php I've this:
> $query = 'select * from list where content = '.$idcontent;
>
> I've this code in my page:
> $idcontent = 15;
> require_once("queries.inc.php");
>
> The query fails: when I do echo the query I've:
>
> select * from list where content =
>
> The $idcontent isn't set in the include...why ? how to fix it ?
Hi Bob,
away from all prior given replies I strongly suggest you to review your
programming style. Use a less a possible global variables in your code.
Don't be anger with me, I just want to give you food for thought.
hth,
Roy
Navigation:
[Reply to this message]
|