Yep from now on I’m just gonna stick with Apple provided stuff because it just isn’t worth it to ruin my battery. I tested my Apple cable at work and I was able to unlock my phone just fine unlike with the other cord. It’s a shame because it really came in handy being a much longer cord than the Apple one. Still, I don’t think I’m gonna trust Walmart stuff again.
I definitely don’t trust them anymore now, that’s for sure! This one wasn’t exactly cheap but it wasn’t majorly expensive either. But it’s the second one from there that went bad pretty quickly on me and that’s 2 too many times. Won’t be doing that again. I’d love a nice braided one, maybe I’ll put that on my Christmas list.

But yeah, moral of my story—stick with Apple. Thanks for the advice guys!
I would agree about using quality cable, although I don't work in electronics, I dealt with this on an almost daily basis in the school picture business as, the equipment manager for 26 years. I have some education in electronics and more importantly, years of experience. I am certainly not an expert by any means.
However, a longer cable will almost certainly have a higher internal resistance therefore output voltages and wattage can potentially be lower going into the phone.
That said, I have used a 6 foot Onn lightening cable purchased at Walmart with no apparent issues in a year.
I previously had an Apple cable, given to me when my sister gave me my first Iphone, her old 5c.
She, like many others doesn't know how to properly take care of cables.
I see many people pull on their cords instead of grasping the connector to remove them. They eventually come apart where the cord enters the connector and eventually wires break or have an unreliable, lower resistance connection.
Furthermore people are often rolling up their cord in improper ways, even folding them. eventually they will become unreliable and inevitably,totally fail.
One of the other major variables here is the quality of the connector contact and the quality of the solder joints.
The older, lead solder was much more reliable, if done properly than the newer, environmental friendly ones.
Feel free to correct me on any of this, as I am certainly not an engineer.
Maybe this is getting off topic now, but does anybody care to share links to cable tests, or redirect me to a better place to post this on macrumors forums?
Thanks