1
BoDGie
$xoopsDB->$myPrefix
  • 2004/4/17 8:59

  • BoDGie

  • Just popping in

  • Posts: 65

  • Since: 2003/8/4 1


Is $xoopsDB->$myPrefix the correct syntax and what files need to be included to use this function?

2
Daigoro
Re: $xoopsDB->$myPrefix
  • 2004/4/17 9:12

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2



3
BoDGie
Re: $xoopsDB->$myPrefix
  • 2004/4/17 9:28

  • BoDGie

  • Just popping in

  • Posts: 65

  • Since: 2003/8/4 1


Thanks, i had a read and it appears im using it right.. But it just seems to halt my script.. if i try echo $xoopsDB->$myPrefix; It doesnt display anything.

4
Daigoro
Re: $xoopsDB->$myPrefix
  • 2004/4/17 9:38

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2



I haven't started using it, yet.

There might be some stuff that needs to be included. Are you inclusing the header and footer correctly?

Hmm.... $xoopsDB->$myPrefix;?

$xoopsDB->prefix should contain the site-specific prefix, but what is $xoopsDB->$myPrefix;?

5
BoDGie
Re: $xoopsDB->$myPrefix
  • 2004/4/17 9:40

  • BoDGie

  • Just popping in

  • Posts: 65

  • Since: 2003/8/4 1


Ohhhhhhhh it's only $xoopsDB->prefix ? *gives it a try*

6
BoDGie
Re: $xoopsDB->$myPrefix
  • 2004/4/17 9:48

  • BoDGie

  • Just popping in

  • Posts: 65

  • Since: 2003/8/4 1


Ok well it doesnt halt my script anymore... but it still doesnt show up with anything.

7
BoDGie
Re: $xoopsDB->$myPrefix
  • 2004/4/17 9:52

  • BoDGie

  • Just popping in

  • Posts: 65

  • Since: 2003/8/4 1


Tried echo $xoopsDB->prefix();

Halts the script...

8
Daigoro
Re: $xoopsDB->$myPrefix
  • 2004/4/17 9:59

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2


Did you try:

$table $xoopsDB->prefix('my_table_name');
echo 
$table;


9
BoDGie
Re: $xoopsDB->$myPrefix
  • 2004/4/17 9:59

  • BoDGie

  • Just popping in

  • Posts: 65

  • Since: 2003/8/4 1


yerp just halts the script... took the dodgy way out and included the mainfile then just did echo XOOPS_DB_PREFIX;

*shrugs* not exactly the cleanest way to do it, but it works.

10
Daigoro
Re: $xoopsDB->$myPrefix
  • 2004/4/17 10:09

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2


Perhaps you need:
global $xoopsDB;


Please try it.

Login

Who's Online

391 user(s) are online (291 user(s) are browsing Support Forums)


Members: 0


Guests: 391


more...

Donat-O-Meter

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

Latest GitHub Commits