Jump to content

I cannot save a category or poducts with code, help plz


dr7tbien

Recommended Posts

Hi. I'm using the following code in order to save a write a category in the database:

 

 

<?
/*
*  modify_cat.php  - modify categories
*/
include_once "../config/autoload.php";

// load category with id = 3

$category = new Category(3);

$category->name = "test name";
$category->re_write = "test rewrite";

$category->update();

?>

 

Then when I exceute the script the values are not catching and the data captured is very dissapointed.

 

Then I'd like to know to keep data usig similar code... I'm sure my code is no good.

 

Any Suggestion?

 

 

dr7tbien

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...