IF Query |
Hello everybody,
I have a problem with an IF. For this query, the total amount of the article should be checked. If it is exactly 0, an update will be executed. But if it is above that, it should be ignored. Example: The database says I have 5 batteries. I sell 5, so an update will be executed. Here are the code: Model PHP Code: public function karte_gelagert_sum($slug = false) { view: Code: <?php echo form_open('Karte/insert_artikel'); ?> I do not understand why this does not update.
Try this, first get it to work then tweak it out.
PHP Code: public function insert_artikel($slug) What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |