Jump to content

add to database dosn't want to work in ajax file


softhightech

Recommended Posts

hello, 

here is my code 

<?php

if(file_exists('../../../../config/config.inc.php'))
{
require('../../../../config/config.inc.php');
require_once('../../../../init.php');
}else{
die('file not exists');
}
 
//i get variables values here example : $order = $_POST['order'];
 
 
Db::getInstance()->insert('ps_order_detail_file', array(
'id_order_detail_file' => pSQL('NULL'),
'id_order_detail' => (int)$order,
'id_product' => (int)$product,
'original_file' => pSQL($original_file),
'worked_file' => pSQL($file_name),
'date_add' => pSQL('now()')
));

?>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...