Posted by Ciaran on 05/10/07 15:49
On May 10, 4:33 pm, "Bob Bedford" <b...@bedford.com> 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 ?
Sounds like the var $idcontent is actually null rather than it being
an include problem. Try echoing that var on the include page and
running it on its own
Ciarán
[Back to original message]
|