This topic is locked
[SOLVED]

 Inserting value not inserting correctly

9/5/2020 12:42:24 PM
PHPRunner General questions
D
david22585 author

Disregard. Found the error. It was a little hidden piece of code that wasn't commented out that carried over from one area to another. As soon as it went to the view record page after adding, it fired the code causing it to change from a 0 to a 1.
After about 50 tables and hundrnds of columns and pieces of code, one little sucker was tricking me up for about 4 hours today.

Myr0n 9/5/2020

If you don't want that this value will be inserted into the db you should use the unset function.


unset($values["viewed"]);
D
david22585 author 9/5/2020



If you don't want that this value will be inserted into the db you should use the unset function.


unset($values["viewed"]);



I do want it set as a 0 to show that the record has not been viewed yet. For example, someone submits an order, viewed is set to 0 to show that the staff hasn't viewed that order yet. The weird thing is, if I change the name from viewed to "acknowledged", or anything else other than viewed, it works just fine.

Myr0n 9/5/2020

Awesome,

Next time, please do not edit your post to to modify as reply, just hit the button reply, because when someone start reading a thread like this, will does not make sense the replies.