Last active
August 29, 2015 14:10
-
-
Save salmanindia/bc77069c840d660b3928 to your computer and use it in GitHub Desktop.
Flipkart Add Product API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ModelCatalogUpload extends Model { | |
public function getDataFromFile($file) | |
{$this->csv2array($file);} | |
public function selectProduct() | |
{ $this->delProducts(); | |
$sql = "SELECT * FROM temp_products "; | |
$query = $this->db->query($sql); | |
$records = $query->rows; | |
foreach ($records as $data) | |
{$this->addProduct($data);} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment