且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用Flash表单和PHP填充mysql数据库

更新时间:2023-10-08 08:25:22

我不是关于flash的。但是从flash脚本如果你可以成功地将变量发送到PHP端我可以在这之后帮助。在您的脚本中缺少一行ID。这就是问题。


检查你的闪存是否正在成功发送数据然后再把它放到sql脚本中用echo打印它。

这里是你的编码。


数据库连接就够了。
db.php

[PHP]<?
I don''t about flash. but from flash script if you can send the variables to PHP side successfully i can help here after. in your script one line id missing. thats the problem.

to check whether your flash is sending the data successfully before you put it to the sql script print it using echo.
here is your coding.

for db connection this is enough.
db.php
[PHP]<?


con = mysql_connect(''localhost'',''root'',''dba'')或死(无法连接到数据库) ;

mysql_select_db(''test'',
con = mysql_connect(''localhost'', ''root'', ''dba'') or die ("Could not connect to the Database");
mysql_select_db(''test'',


con)或死(mysql_error());

?> [/ PHP]


insert.php

[PHP]&lt ;?

//你的变量在这里

con) or die (mysql_error());
?> [/PHP]

insert.php
[PHP]<?
// your Variables goes here