韩国服务器PHP增加MYSQL字段

韩国服务器具体问题:

韩国服务器PHP要如何写增加MYSQL字段的代码呢?比如表是diy_form?用PHP增加一个表为name_1的字段要怎么写呢?

韩国服务器实现方法:

//增加字段sql语句,<?php$sql="altertablediy_formaddname_1varchar(50)notnull";//php执行语句$result=mysql_query($sql);//判断是否成功if($result){echo("<scripttype='text/javascript'>alert('增加成功!');history.back();;</script>");exit;}?>

测试时,请把注释除掉。【艾娜】

分享文章