1
jultey
How to have a database connection in the non-authentified user's menu
  • 2004/7/7 8:30

  • jultey

  • Just popping in

  • Posts: 12

  • Since: 2004/6/2 7


Hello,
(Sorry for my English, I'm French...)

I am making a php bloc in the non-authentified user's menu. In this bloc I would like to acces information of my database....

But I cant't use $xoopsDB...

What do I have to include to have a connection ?

Thanks for your answers.

Julien

2
jultey
Re: How to have a database connection in the non-authentified user's menu
  • 2004/7/7 9:10

  • jultey

  • Just popping in

  • Posts: 12

  • Since: 2004/6/2 7


Find :
I just have to add :
Quote:

global $xoopsDB ;

at the top of my bloc !

Thank you at myself

3
chapi
Re: How to have a database connection in the non-authentified user's menu
  • 2004/7/7 9:28

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


Ah great! You get an extra point for finding the solution on your own and posting the answer here too! Resized Image

4
jultey
Re: How to have a database connection in the non-authentified user's menu
  • 2004/7/7 11:44

  • jultey

  • Just popping in

  • Posts: 12

  • Since: 2004/6/2 7


Often I see "YĆ©, I have found the solution [just that]".

When I see that, I think in myself... mmm, I'll always post the answer when I'll find the solution of my future problems !

Login

Who's Online

153 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 153


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits