點解我ge php5連唔到mysql5?

2008-03-20 12:56 am
<?php

$conn = @new mysqli('localhost', 'root', '1228','messageboard');
$conn->query("SET NAME 'utf8'");


$fullName = $_POST["fullname"];
$userName = $_POST["username"];

$q_str = <<<EOQ
INSERT INTO users (user_id,user_name, full_name, user_email,birthday)
VALUES (110,$userName, $fullName, "[email protected]", "1900-12-03")
EOQ;

$result = @$conn->query($q_str);

?>

//thx for your help

回答 (1)

2008-03-20 4:09 am
✔ 最佳答案
連唔到咁究竟出咩error?
我建議你都係租返個好d既網頁寄存空間, 例如 http://www.teamagic.com.hk


收錄日期: 2021-04-15 14:57:13
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20080319000051KK01874

檢視 Wayback Machine 備份