From: | Andrew McMillan <andrew(at)catalyst(dot)net(dot)nz> |
---|---|
To: | Andy Arledge <mrgburg(at)worldnet(dot)att(dot)net> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: novice, question |
Date: | 2001-02-12 05:11:34 |
Message-ID: | 3A877086.9154A140@catalyst.net.nz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Andy Arledge wrote:
>
> anyone have an idea why this won't work? when i print out "i" it says 893,
> but it should be 41. and the values are null for the array $userinfo.
>
> thanks in advance,
>
> andy arledge
>
> if(!($result= pg_exec($link, "SELECT * from signup, info1, info2 where
> (signup.username='$uname' or
> info1.username='$uname' or
> info2.username='$uname');"))){
> DisplayErrMsg(sprintf("Error in executing line %s stmt",
> $selectStmt));
> exit();
> }
> for($i = 0; $userinfo = @pg_fetch_object($result, $i); $i++);
Why is there an '@' in front of that pg_fetch_object call?
Cheers,
Andrew.
--
_____________________________________________________________________
Andrew McMillan, e-mail: Andrew(at)catalyst(dot)net(dot)nz
Catalyst IT Ltd, PO Box 10-225, Level 22, 105 The Terrace, Wellington
Me: +64 (21) 635 694, Fax: +64 (4) 499 5596, Office: +64 (4) 499 2267
From | Date | Subject | |
---|---|---|---|
Next Message | Chris | 2001-02-12 05:28:48 | Re: novice, question |
Previous Message | Andy Arledge | 2001-02-12 04:50:16 | novice, question |