Hello,
Let me begging by saying I am no coding expert.
I have this old query:
if ($category == "Disbursement" )
{ $query_image = "INSERT INTO $tbl_name(id, amount, date, description, category, path, name) VALUES ('', '$amount', '$date', '$description', '$category', '$uploadfile','$fileName')";
I have replaced it with the new query:
if ($category == "Disbursement" ) {
$db->insert('wf', array(
"id" => 0,
"amount" => $amount,
"date" => $date,
"description" => $description,
"category" => $category,
"path" => $uploadfile,
"name" => $fileName
));
Upon submission the code is inserting a blank row. Hence I am not carrying my data from the posted form.
Can you help me with the right syntax?
Thank you.