--- James Keeline <[EMAIL PROTECTED]> wrote: > Finally, and this may be it, all variables in functions are local to > that function (except for superglobals--hence their name). Your $db > object reference is defined outside the function but is out of scope > inside the function until you do add: > > global $db; > > to the top of your function definition.
That is probably the case. It's been so long since I bothered with globals that I'd overlooked this fact. '$db' is a call to the database abstraction script, which is included in the first line of the file. If adding 'global $db' doesn't work, I'll be back. ;-) Thanks, -Bob __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/HKFolB/TM --------------------------------------------------------------------~-> Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
