需要帮助脚本来在MySQL上存储数据 [英] Need help with scripting to store data on MySQL

查看:65
本文介绍了需要帮助脚本来在MySQL上存储数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近一直在为一个荣誉协会的网站工作,并且有很多困难但是已经从这个网站上找到了帮助。我想看看我能否在一个不同于我最初的问题上获得更多帮助。

我正在努力将从表格收集的数据存储在我的网站上。我希望用户输入后将信息存储到MySQL中。我搜索了这个问题并尝试了多项建议并略有进展。我遇到的问题是我按下提交按钮(实际上称为添加成员)后的页面显示为空白。我希望该页面显示为谢谢,您的信息已被添加或提供错误不完整的信息,请填写表格或类似的规定。


所以我的问题是获取存储到MySQL的信息,然后将填好的表单页面移到下一页。


请参阅: http://mideasthonors.org /addmember.php 查看表单。


这是我将表单信息添加到MySQL的脚本:

I have recently been working on a website for an honors association, and have a lot of difficulty but have found help from those on this site. I would like to see if I can get some more help on a different issue than what I was initially having.
I am working on storing data collected from a form on my website. I would like the information to be stored into MySQL once entered by users. I have googled this question and have tried multiple suggestions and have progressed slightly. The problem that I am having is that the page after I press the submit button (actually called Add Member) comes up blank. I would like the page to either read "Thank you, your information has been added" or "Error-incomplete information provided, please fill out the form" or something along those lines.

So my problem is getting the information to store to MySQL and then getting the filled out form page to move onto the next page.

Please see: http://mideasthonors.org/addmember.php to view the form.

This is the scripting I have for the form information to be added to MySQL:

展开 | 选择 | < span class =codeLinkonclick =WordWrap(this);> Wrap | 行号

推荐答案

脚本看起来有些奇怪......
the script seems somewhat strange...
  • is


add_member 真的是MySQL字段名吗? (单引号无法解析)
  • 同样适用于
  • add_member really the MySQL field name? (single quotes ain''t parsed)
  • same goes for

  • row [''


    这篇关于需要帮助脚本来在MySQL上存储数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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