1
rcjohnson
How to display database data?
  • 2004/9/8 17:51

  • rcjohnson

  • Not too shy to talk

  • Posts: 187

  • Since: 2004/7/23


I've been poking around...and without being to cryptic....is there an easy way to display a db value in a static html page?

I just want to add a table in our XOOPS MySQL database, and display the current value on a static page.

Is there an easy way to do this?

2
sbkiller
Re: How to display database data?
  • 2004/9/8 18:06

  • sbkiller

  • Just can't stay away

  • Posts: 461

  • Since: 2004/6/9 2


Can you please be more specific?

You might need some PHP workout.

3
rcjohnson
Re: How to display database data?
  • 2004/9/8 18:25

  • rcjohnson

  • Not too shy to talk

  • Posts: 187

  • Since: 2004/7/23


Im just trying to figure out how to display a value from a database.....

I have a page from a tinycontent module that lists information about one of our products. I just want to pull a value from a table in my database.

lest say the database is called: xoops_service, and my table name is "XDS_VER", with one row called "CURRENT_VERSION"

I would like to extract the value of "CURRENT_VERSION" and display it on my html page.

4
Dave_L
Re: How to display database data?
  • 2004/9/8 19:40

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


If the page is displaying the current value from a database, then it's not really a "static" page.

If the page is otherwise just plain HTML (not generated by Xoops), the only method I can think of is to change it to .php, and add a snippet of PHP code to connect to the database, extract the value and display it.

Login

Username:
Password:

Lost Password? Register now!

Who's Online

68 user(s) are online (40 user(s) are browsing Support Forums)


Members: 0


Guests: 68


more...

Donat-O-Meter

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

Latest GitHub Commits