If 2.3 in $entry['2.3'] represents the index key sent by the POST request, and so it is the name of an input field:
<input type="text" name="2.3">
then PHP will translate the dots into underscores, so you can match it by doing $_POST['2_3']. But I'm a bit lost, I am not following your issue. Maybe the AJAX does not send data? Do you see anything in the console log?
What happens is that even though the information page has checks that data is filled in - the checkout file if a search crawl hits the page it sends blank info to the generic e-mail box.
Is this script checking on server side too? Since you are submitting a form, you can verify if the request method is POST. That should block random crawlers, as genuine robots usually do not send POST requests.
You could also add a csrf token to the session and to the form, and verify that the request matches the one saved in the session. This should block also intentionals submissions from remote.
Thank you Jim! Yes, that works fine and also counting the resulting array works fine.
The original query is not like in the above example: I was using FOUND_ROWS() in a PHP PDO class, to automatically extract the number of rows, but it was not working appropriately. So I started playing with an example table and added SQL_CALC_FOUND_ROWS too and came down with the above test.
Even by doing:
SELECT SQL_CALC_FOUND_ROWS * FROM `test` LIMIT 3;
then FOUND_ROWS() should return 5, instead it returns 1. In practice, I do not understand why it does not output the expected result.
I just did a test on MariaDB 10.0.28 and MariaDB 10.1.19 and returns 5, as expected. My current instead is 10.0.29, so it may be a bug.
@Dani, yes, I added SQL_CALC_FOUND_ROWS just to test the query.
Localhost? It seems a ramsonware, a virus that encrypts data and ask money to return the files back. If you are using Windows that's probably in your system, so it should not be related to the application code. The same can happen if the folder is shared in a local network and the virus is compromising all the files it can reach.
I've also been getting a lot of sex spam. I wonder if someone got my email address off a database somewhere ^_^
Me too and they try to add my account to Hangouts, so I reply to add my "other" account instead, which is the email address of a previous spammer. When they insist, I reply with Siri's quotes, random tweets, youtube videos. Last time, the correspondence continued for a week before they gave up.
You're welcome. I'm not really into OpenCart, but reading the documentation, it seems you need to develop a Product Feed with a model, so you can define your database schema and associate the results of the affiliate programs. See if this helps: