Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 10th, 2025, 11:50 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Display records from database with script
PostPosted: November 18th, 2005, 1:22 pm 
Offline

Joined: April 1st, 2005, 6:59 pm
Posts: 98
Location: Maastricht, The Netherlands
Opus: V7
OS: Mac OS X 10.7.2 | Windows 8 Dev
System: i5 2.7 | 8G Ram | 1 T HD
Hi,

I want to display records from a database with script ( see code below ).
I want to set a pub variable " klantnaam " to the database field " Naam", something is wrong but I doen't know what??!!!!

Code:
var db = new Database("FILEDSN=klantgegevens.dsn");
var records = null;

function Searchklant()
{
   var sql = "SELECT * FROM klantTbl WHERE Naam LIKE '%"+zoekklantnaam+"%' ORDER BY Naam;";
   // Debug.trace(sql+"\n");
   records = db.ExecuteSQL(sql);
   
   ShowRecords()
}
function ShowRecords()
{
    klantnaam = Naam
   }


Hope somebody can help.

Ronnie


Top
 Profile Visit website  
 
 Post subject: try ==
PostPosted: January 7th, 2006, 7:46 pm 
Offline

Joined: May 20th, 2005, 7:37 am
Posts: 3
Location: Beveren - Belgium
try ==


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group