1
bream
Recent Downloads - php include
  • 2003/11/10 22:58

  • bream

  • Just popping in

  • Posts: 12

  • Since: 2003/3/18


How would i go about using a <?php include on a seperate php page (seperate to the XOOPS install, but still on the same server) to show the recent downloads from mydownloads module on it?

thanks

2
bream
Re: Recent Downloads - php include
  • 2003/11/17 0:17

  • bream

  • Just popping in

  • Posts: 12

  • Since: 2003/3/18


any takers :S

please

3
mvandam
Re: Recent Downloads - php include
  • 2003/11/17 0:59

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


This could be a lot of work as XOOPS has not really been designed to work this way. When an XOOPS page is viewed, several files are included to load all kinds of things like database config info and session information, in addition to all kinds of stuff for building a page. Not sure it would work, but you could try including mainfile.php from your php file then access the mydownloads table(s) directly using the $xoopsDB database object. An easier solution is probably just hardcode in PHP a connection to your MySQL database, query the mydownloads table(s) and output the results.

4
bream
Re: Recent Downloads - php include
  • 2003/11/17 20:00

  • bream

  • Just popping in

  • Posts: 12

  • Since: 2003/3/18


is there any available code that will do this for me at all :s

cheers

5
mvandam
Re: Recent Downloads - php include
  • 2003/11/17 21:19

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Quote:

is there any available code that will do this for me at all :s

Not that I'm aware of, but maybe someone else knows of something...

Login

Who's Online

171 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 171


more...

Donat-O-Meter

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

Latest GitHub Commits