Re: [PHP] weird MySQL resource error

2002-12-28 Thread Rasmus Lerdorf
Because you are wiping out your $sponsor variable in that commented-out code. On Sat, 28 Dec 2002, James Brennan wrote: > I am getting a "Warning: mysql_fetch_row(): supplied argument is not a valid > MySQL result resource" error only when the commented-out code bellow > (starting from $id = bb_s

[PHP] weird MySQL resource error

2002-12-28 Thread James Brennan
I am getting a "Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource" error only when the commented-out code bellow (starting from $id = bb_sponsor...) is added. If I omit the code the resource is recognized as valid. Can anyone explain? Thanks, loop P.S. - I know