$today = date("Y-m-d");
$fields_str = implode(",",$fields);
$values_str = implode('","',$values);
$fields_str .=",createDate";
$values_str .='"'.",".'"'.$today;
$fields_str .=",password";
$values_str .= '"'.","."md5"."('".$password."')";
$sql = "INSERT INTO member ";
$sql .= "(".$fields_str.")";
$sql .= " VALUES ";
$sql .= "(".'"'.$values_str.")";
$result = mysqli_query($cxn,$sql)
or die("Couldn't execute final insert query");
The account info is correct, because I get other errors when I try this with the account info wrong.
I believe I might have a problem with the table I made, but it does look ok to me according to the book.
I got to wondering if there is a way to see the code going from php to the mysql server? They are on the same machine (a laptop) that has php (5.2.5), mysql (5) and apache (2.0) on Winxp with sp3. I have error logging turned on, but there is no log file.
Thx,
Joe

New Topic/Question
Reply




MultiQuote






|