什麼我的問題,以添加新列到DB如何在PHP MySQL的添加新列
// Connection
global $tutorial_db;
$tutorial_db = new mysqli();
$tutorial_db->connect($dbhost, $dbuser, $dbpass, $dbname);
$tutorial_db->set_charset("utf8");
// Check Connection
if ($tutorial_db->connect_errno) {
printf("Connect failed: %s\n", $tutorial_db->connect_error);
exit();
}
$query="alter table groups add order varchar (20)";
$result = $tutorial_db->query($query);
此代碼不會做任何事情......
'colmun'?嗯? – 2014-08-29 20:42:13
是的,一個錯字。固定。 – CarCzar 2014-08-29 20:44:08