Rebol Talk Forum  |  REBOL Discussions  |  REBOL Sand Box  |  RebDB  |  Topic: how to retreive data from rebDB?
Pages: [1] Print
Author Topic: how to retreive data from rebDB?  (Read 458 times)
newbie
Guest


Email
how to retreive data from rebDB?
« on: April 07, 2004, 02:18:43 AM »

Hi, how to retreive the data from the database and display the result on to the textbox or label in cgi format. Thank you Cheesy  
Logged
Ashley
Newbie
*
Offline Offline

Posts: 37


View Profile
how to retreive data from rebDB?
« Reply #1 on: April 07, 2004, 06:43:33 PM »

I'm no CGI expert, but in general terms you might look at something like:
Code:
foreach [col1 col2] db [select [col1 col2] from table][
   print rejoin ["<tag>" col1 "</tag>"]
   print rejoin ["<tag>" col2 "</tag>"]
]
You might also want to check out the following REBOL functions for some inspiration:
    [li]build-markup
    [li]build-tag
    [li]parse-xml
Logged
Pages: [1] Print 
Rebol Talk Forum  |  REBOL Discussions  |  REBOL Sand Box  |  RebDB  |  Topic: how to retreive data from rebDB?
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 17, 2008, 05:54:09 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2169 Posts in 562 Topics by 1224 Members
Latest Member: thyptoste

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc