Re: Probably a dumb question but I'm new to PEAR.
| From: | Malcolm Turnbull | Date: | Wed, 20 Mar 2002 15:49:39 +0000 |
| Subject: | Re: Probably a dumb question but I'm new to PEAR. | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-989@lists.php.net to get a copy of this message | ||
Ah sorry typo in my question I meant to say :
$sql="select * from users2;";
$result=$db->query($sql);
causes a parser error
http://www.castleinfo.co.uk/code/peartest.php
Regards,
Malcolm Turnbull
Group IT Manager -
Crocus.co.uk Ltd &
Waterers Landscape PLC
01344 629661
07715 770523
www.crocus.co.uk - For all your Garden Needs
www.stealthinventory.com - The Open Source Software Audit Tool
----- Original Message -----
From: "Jan Lehnardt" <jan@php.net>
To: "Malcolm Turnbull" <malcolm.turnbull@crocus.co.uk>
Cc: <pear-general@lists.php.net>
Sent: Wednesday, March 20, 2002 3:46 PM
Subject: Re: [PEAR] Probably a dumb question but I'm new to PEAR.
> Hi,
> On Wed, 20 Mar 2002 15:42:04 -0000
> "Malcolm Turnbull" <malcolm.turnbull@crocus.co.uk> wrote:
>
> > $sql=("select * from users2;");
> > $result=$db->query($sql);
> get rid of the braces.
> $sql='SELECT field FROM table';
> $result=$db->query($sql);
>
> Jan
> --
> Q: Thank Jan? A: http://geschenke.an.dasmoped.net/
>