on the line that starts with $query = there's an extra ."
the line should be:
$query = "SELECT shops.name FROM shops WHERE name = ".$name;
[]s
Fernando
"Adam French" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm just starting out, this is my script...
>
In article <000901c2498b$ce972950$0e00a8c0@luke>,
[EMAIL PROTECTED] says...
> Hey guys, got a basic question for you...
>
>
>
> function getvar()
> {
> $vari = "bollocks";
> }
>
> getvar();
> echo $vari;
> ?>
>
>
> How do I make that function return the variable?
>
>
> Thanks,
> Liam
2 matches
Mail list logo