I'm trying to set a range of values to be assigned to a value i.e
if ($row[weight] == <50) { $lbs = 50; } Here I want it to be between 51 and 99 can any one show the correct syntax to accomplish this.
TIA Richie TM
I would think that this is what you're looking for:
if ($row["weight"] > 50 && $row["weight"] < 100) { $lbs = 50; }
Hope this helps 🙂