osc/php pros (simple code adjustment)

I currently have a little script on my osc site that is acting up.

It's really a simple rewrite of the 'featured' module.

It counts item quantities and adjusts when item is sold.

The problem is that when the qty gets to zero, I end up with "Divison By Zero" errors.

Can this be remedied with a simple 'if' statement?

I'm not a php pro.

Evner: Javascript, PHP, Indkøbsvogne

Se mere: osc php, php time adjustment code, statement problem, rewrite module, it problem statement, adjust featuredphp module, php pros, php osc, QUANTITIES, Pros, php pro, php errors, little code, pro module, rewrite javascript, simple module, javascript code rewrite, script php rewrite, javascript code script php, osc pros, code simple, rewrite javascript php, code module, code pro, php problem

Om arbejdsgiveren:
( 62 bedømmelser ) Houston, United States

Projekt ID: #267421

Tildelt til:


Lets get started

$30 USD in 0 dage
(127 bedømmelser)

3 freelancere byder i gennemsnit $30 på dette job


Treewalker would like to do this task. Looking forward in anticipation for your considerations. Please see PMB for details.

$30 USD på 1 dag
(28 bedømmelser)

Yes, absolutely. Can be done within shortest possible of time.

$30 USD in 0 dage
(22 bedømmelser)