D
|
david22585 9/10/2020 |
Try this: $sql = "SELECT id AS aff_id FROM tblclients where email LIKE ".$_SESSION["UserID"]."; |
S
|
skbrasil author 9/10/2020 |
Thanks for listening, but the code didn't work. |
![]() |
Sergey Kornilov admin 9/11/2020 |
There are several issues here:
$sql = "SELECT id AS aff_id FROM tblclients where email="'.$_SESSION["UserID"]."'"; |
S
|
skbrasil author 9/15/2020 |
There are several issues here:
$sql = "SELECT id AS aff_id FROM tblclients where email="'.$_SESSION["UserID"]."'";
|
![]() |
Sergey Kornilov admin 9/15/2020 |
$_SESSION["UserID"] will hold the value of the field that was selected as a username. Can be an email address or can be any other field. |