PDA

View Full Version : Function and query problems =(


croft
10-18-2002, 02:45 AM
I searched and searched. Mayby i searched the wrong thing dont know.

Lets say if i wanna create a new page away from vbulletin like a mainsite. In that page i want to show users online last topics and stuff like that. How do i write a query to the database ? If i make a totaly new page do i have to require the mainfile or something like that. Or will it do with yust a query to the database to get the info ?

I know i can get some portals and stuff but i dont want that. And im sure you have posted about this somewhere before to. If so could you point me in the correct direction ?
Any help would be nice.

Xenon
10-18-2002, 12:01 PM
of course you can jsut run the needed queries if you connect to the DB in your new script.

the easiest way is to require the global.php so u can use the DB_site commandos

croft
10-18-2002, 12:03 PM
How do i make a require the global script ?
Can i yust add it to the top of the page and then make what kind of page i want ?

require('./global.php');

Xenon
10-18-2002, 12:15 PM
yes