Hi everybody, first thanks for assistance because I got finally the point and I am almost there.
I chop the problem in simple things to sort out what I need 😀
So I want to avoid the user to sumbit data two times from the same cpmputer.
To do this, I have to confront his IP with the ones already stored in the column "ipaddress" of a "cf_table".
How to do that? I am looking at some doumentation of mysql, please some light.lightbulb
I guess should be a cyle.
The current IP address is given by:
Is the code for checking the values of a column somethings like the following ?
I chop the problem in simple things to sort out what I need 😀
So I want to avoid the user to sumbit data two times from the same cpmputer.
To do this, I have to confront his IP with the ones already stored in the column "ipaddress" of a "cf_table".
How to do that? I am looking at some doumentation of mysql, please some light.lightbulb
I guess should be a cyle.
The current IP address is given by:
JRequest::setVar( "ipaddress", JRequest::getVar( "ipaddress", $_SERVER["REMOTE_ADDR"], "post", "string", "" ));
Is the code for checking the values of a column somethings like the following ?
<?php $sql = "SELECT Ipaddress from cf_table"; $result = mysql_query($sql); while ($_SERVER["REMOTE_ADDR"] = mysql_fetch_field($result)) { .. DO the autogenerated code for allowing the user subit the data to cf_table .. } ?>