使用Flash表单和PHP填充mysql数据库 [英] Populating mysql database using flash form and PHP

查看:82
本文介绍了使用Flash表单和PHP填充mysql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的......我现在正在尝试通过我的flash表格填充数据库的第3天!我想在破解之前需要一些帮助!


我根本无法让它工作......


我能够通过电子邮件从闪存中获取我的变量,但是需要一位PHP / SQL专家来告诉我我在做什么,所以在这种情况下非常错误......对于我新手以上的人来说,这可能是非常明显的水平 - 拜托? ;)


这是'我的代码:


动作脚本:

OK... I am now heading into day 3 of attempting to populate a database through my flash form!! I figure I need some help before I crack!

I just can''t get it to work at all...

I am able to get my variables from flash for the purposes of sending them via email but need a PHP/SQL guru to tell me what I am doing so horribly wrong in this case... it may be something really obvious to someone above my novice level - Please? ;)

Here''s my code:

Actionscript:

展开 | 选择 | Wrap | 行号

推荐答案

我不是关于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]< ;?

//你的变量在这里

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

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


这篇关于使用Flash表单和PHP填充mysql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆