Good day Guys n Gals.

Lately I'm having a little bit problem of using ereg_replace before
saving data to database. I have this category table and i want to
replace white space with underscore.

I have this fields on my database:

Table_name: Category
Fields: id, cat

I've tried this code:

if (!empty($this->data))
{
     $this->ereg_replace(" ", "_", $this->data['Category']['cat']));
     $this->save($this->data));
}

But it doesn't work as expected.


Need your help guys and gals....


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to