Welcome Guest, Not a member yet? Register   Sign In
Entering varchar datatype field data into the database table
#3

[eluser]Unknown[/eluser]
Hi, Below is the code
$insertData = array( 'products_id'=> $productId,
'quantity' => $qty,
'merchant_id' => 1
);
$this->db->insert('products', $insertData);

In products table products_id is VARCHAR datatype, quantity and merchant_id are integer.


Messages In This Thread
Entering varchar datatype field data into the database table - by El Forum - 12-23-2008, 10:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB