网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 服务器与数据库 > MySQL
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

Reply
 
Thread Tools Display Modes
  #1   IP: 222.76.215.18
Old 2008-01-24, 09:19 AM
sunshine sunshine is offline
高级会员
 
Join Date: 2006-01-05
Posts: 368
sunshine 正向着好的方向发展
Default 如何将文本文件导入到mysql数据库中去

可以先把文件读入一个变量,然后再写入Mysql数据表中。具体方法我查查先。

哦,先用FTP把要打开文件的目录属性设置为644,然后用php的fopen函数打开文件,把文件内容生读到一个变量中,接着再连接mysql写入。

可以写成一个function来自动完成这一步骤,放在一个php中,其它php文件include它。具体用法可以到www.php.net去查。
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 03:35 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.