php insert failed,PHP不起作用INSERT INTO方法

我试图插入eshop_db中的客户表

当我运行它时,它没有任何错误,但它没有存储在mysql中。

我的代码中有什么问题?

我真的不明白。

请给出一些答案。谢谢。

--registerForm.php--

User ID: *

Password: *

Retype Password: *

First Name: *

Last Name: *

Your Address (*):

Phone: *

E-mail: *

--register.php--

require "sql_connection.php";

if(isset($_POST['submit']))

{

if($_POST["password"]==$_POST["repassword"])

{

mysql_query("insert into customer (userId, password, firstName, lastName, address, phone, email)

values ('$_POST[userId]','$_POST[password]','$_POST[firstName]','$_POST[lastName]','$_POST[addres]]','$_POST[phone]','$_POST[email]')")

or die(mysql_error());

}

}

?>--sql_connection.php--

$db_host = "localhost";

$db_username = "root";

$db_pass = "mypass";

$db_name = "eshop_db";

@mysql_connect("$db_host", "$db_username", "$db_pass", "$db_name") or die("connection is fail.");

@mysql_select_db("$db_name") or die("database does not exsist.");

echo "Successfully connected!!";

?>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
X9DAI 主板NVME BIOS文件 基于官方最新3.3版(8.712)添加nvme模块 ================================================ Standard BIOS Update Procedure ================================================ 1. Save this BIOS update package to your computer. 2. Extract the files to a DOS bootable device (such as a bootable USB stick, or a CD). 3. Boot to a DOS prompt and type AMI.BAT BIOSname.### to start the BIOS update. 4. Do not interrupt the process until the BIOS update is complete. 5. After the message indicating BIOS update has completed, unplug the AC, clear the CMOS, and then plug in the AC, power on the system. 6. Go to the BIOS configuration, load the default setting, save and exit the BIOS. ================================================ BIOS Recovery (see user's manual for details) ================================================ Recovery BIOS with a USB Drive If the BIOS file is corrupted and the system is not able to boot up, this feature will allow you to recover the BIOS image using a USB-attached device. A USB flash drive or a USB CD/DVD ROM drive may be used for this purpose. Please note that the USB hard disk drive is NOT supported at this moment. Follow the procedure below to recover the BIOS. 1. Use a different system, copy the standard BIOS binary image file into a USB flash drive or a writable CD/DVD disc's Root Directory, and rename the file to 揝UPER.ROM? 2. While the system is turned off, insert the USB device that contains the new BIOS binary image (揝UPER.ROM?. 3. Right after powering on the system, press and hold and keys together until the USB device's LED indicator comes on. This may take a few seconds or up to one minute to start the process. 4. Once the USB device's LED is on, release the and keys. The system may generate beep codes to indicate that the BIOS ROM firmware is being reprogrammed, and a message may also be displayed on the screen. DO NOT INTERRUPT THIS PROCESS UNTIL IT扴 FINISHED! 5. After the Boot Sector Recovery Process is complete, the system will reboot automatically. 6. Boot into USB drive again. When DOS prompt appear, please type AMI.BAT BIOSname.### to start BIOS update, just like in standard procedure. 7. Do not interrupt the process until the BIOS update is complete. 8. After you see the message of BIOS has completed the update, unplug the AC, clear the CMOS, and then plug in the AC, power on the system. Go to the BIOS configuration, load the default setting, save and exit the BIOS. Notes: * If the BIOS flash failed, you may contact our RMA Dept. to have the BIOS chip reprogrammed. This will require shipping the board to our RMA dept. for repair. Please submit your RMA request at http://www.supermicro.com/support/rma/. ********* BIOS Naming Convention ********** BIOS name : PPPPPSSY.MDD PPPPP : 5-Bytes for project name SS : 2-Bytes supplement for PPPPP Y : Year, 9 -> 2009, 0-> 2010, 1->2011 MDD : Month / Date E.g. BIOS with the build date: 2010/1/15: X8ST3-F -> X8ST30.115 X8SIL-F -> X8SIL0.115

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值