Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2008-11-02 15:45:24

eric235u
Member
From: free software land
Registered: 2008-05-10
Posts: 68
Website

where can i learn more about $db->object

i'm digging around the forum, wiki and latest svn but still scratching my head.  any tips on the various ways i can talk to my database are appreciated.


healthfit-pro.com - information and software for fitness professionals

Offline

#2 2008-11-02 15:49:25

Franz
Lead developer
From: Germany
Registered: 2008-05-13
Posts: 3,755
Website

Re: where can i learn more about $db->object

Look at the folder include/dblayer

There are probably about 20 functions...

See here: http://fluxbb.org/trac/browser/fluxbb/b … /mysql.php


fluxbb.de | develoPHP

"As code is more often read than written it's really important to write clean code."

Offline

#3 2008-11-02 16:01:29

eric235u
Member
From: free software land
Registered: 2008-05-10
Posts: 68
Website

Re: where can i learn more about $db->object

ok.  so i can just use $db-> and follow it with one of the functions listed in the db layer.  cool.

now what about $forum_db->query('...')?  where is this in the core?  is it better to use one of the other?

thanks again.


healthfit-pro.com - information and software for fitness professionals

Offline

#4 2008-11-02 16:02:37

Franz
Lead developer
From: Germany
Registered: 2008-05-13
Posts: 3,755
Website

Re: where can i learn more about $db->object

you can only use $forum_db. It was $db once... long ago wink


fluxbb.de | develoPHP

"As code is more often read than written it's really important to write clean code."

Offline

#5 2008-11-02 16:23:23

eric235u
Member
From: free software land
Registered: 2008-05-10
Posts: 68
Website

Re: where can i learn more about $db->object

oh wow, i remember now.  i joined about a month after you.

totally off topic, when did you first hear about pun (flux)?  i was reading about 30 days of php hacks (a hack a day i believe) and the site that was doing this was using punbb as their forum.  i was like, if it's good enough for them it's good enough for me.

thanks again for the db tip.

Last edited by eric235u (2008-11-02 16:24:51)


healthfit-pro.com - information and software for fitness professionals

Offline

#6 2008-11-02 17:13:31

Franz
Lead developer
From: Germany
Registered: 2008-05-13
Posts: 3,755
Website

Re: where can i learn more about $db->object

No problem.

Uhmmm... I think I was trying to find something for online lessons for my host mother wink. After spending a whole day on playing around with servers etc. (I had no idea before that day) and trying all kinds of softwares (e.g. PhpBB - didn't really work and was confusing), I used PunBB and it worked right away. I had already found it earlier, but didn't like the idea of being small and not having all the features, but when the other things didn't work out, I suddenly liked the idea wink After that, I played around with Pun, learned PHP from it and later chose Flux.

Clear enough? big_smile


fluxbb.de | develoPHP

"As code is more often read than written it's really important to write clean code."

Offline

#7 2008-11-03 13:58:29

Franz
Lead developer
From: Germany
Registered: 2008-05-13
Posts: 3,755
Website

Re: where can i learn more about $db->object

There might be some new functions added when this is done.


fluxbb.de | develoPHP

"As code is more often read than written it's really important to write clean code."

Offline

Board footer

Powered by FluxBB 1.4.8