Can you elaborate? Are you getting any errors?can't seem to insert the data
issue with inserting data that has hyphen in
Moderator: General Moderators
Re: issue with inserting data that has hyphen in
Nothing's jumping out at me
Re: issue with inserting data that has hyphen in
Have you checked the return value of $stmt->execute? Called $mysqli->error?
Re: issue with inserting data that has hyphen in
For debugging, this will doianhaney wrote:Not yet no, how do I do that?
Code: Select all
// insert the new record into the database
if ($stmt = $mysqli->prepare("INSERT software (software_title, software_number, times_used, customers_name) VALUES (?, ?, ?)"))
{
$stmt->bind_param("ssss", $software_title, $software_number, $times_used, $customers_name);
$success = $stmt->execute();
if ($success === false) {
var_dump($mysqli->error); exit;
}
$stmt->close();
}Re: issue with inserting data that has hyphen in
I noticed INTO keyword is absent. INSERT INTO software...
Re: issue with inserting data that has hyphen in
Has that solved your problem?