PC6下载站

分类分类

如何从数据库得到一个列表表单

关注+2004-11-07作者:蓝点



ASPHole - Fill List Box Example







Country:
















Key points of the sample:



sPath is used to construct the path to the database based on the home directory of the script. This means

that the database must be in the same directory as the script., otherwise, set sPath to the absolute path

of the database.



The database is assumed to a be an Access 2000 Database with a table Countries with a character field

Country.



Forms are assumed to point at the same script which created it unless action is specified.



The IF mCountry=... statement is used to insert the word SELECTED into the OPTION containing the previous

country value, should one have been passed in by a submit.



If you have problems running this script, your database drivers may be out of date. Go to

http://www.microsoft.com/data for the current MDAC RTM.



-END-






展开全部

相关文章

更多+相同厂商

热门推荐

  • 最新排行
  • 最热排行
  • 评分最高
排行榜

    点击查看更多

      点击查看更多

        点击查看更多

        说两句网友评论

          我要评论...
          取消