I have two buttons (one selects the “NEWS FOR TODAY” while the other selects the "NEWS FOR THE LAST 7 DAYS" that call the same web1 each calling a different PHP file.
Yet for some reason, most (the images only) are being returned and not the data.
I don’t completely understand what you are trying to say. If you have problem with data not fetching or you can’t separate data fetched with separate buttons?
Friend. What we see are 2 identical URLs.
Why are your scripts returning only images and not data?
Maybe,Error in your scripts…
Theoretically, each URL should point to a script.
Or send a different parameter so that within the script you define what you want to return via Json.