I am using PHP with MySql. I have a statement:
$sql = "select * from Validnames where UserID = '$UID' && Location = '$Location'";
Am I correct this gets a single matching row of data from the database. If so, how do I pull out the value of 1 of the fields in the row. (2nd column)
Sorry if this is more PHP but its half and half.
Thanks
Regards
$sql = "select * from Validnames where UserID = '$UID' && Location = '$Location'";
Am I correct this gets a single matching row of data from the database. If so, how do I pull out the value of 1 of the fields in the row. (2nd column)
Sorry if this is more PHP but its half and half.
Thanks
Regards