|
Posted by David Gillen on 05/10/07 16:07
Bob Bedford said:
> 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 ?
>
Is your $query = .. line inside of function in teh queries.inc.php?
If so $idcontent is out of scope.
D.
--
Fermat was right.
Navigation:
[Reply to this message]
|