I have a table 'adherents' with a single record possible for a user.
If the record do not exist, the view of the table is empty and it's possible to complete the form and save it.
If a record still exited I want the user directly connect to the single record (he can modify and save the informations in the form)...
I need to verify if a record exist or not to drive the user in the good case when he click on button from the main menu.
I have tried the code below but I dont know how use 'set_record_owner'...
Code: Select all
$email = $memberInfo['email'];
$resultat = sqlValue("SELECT ads_adherents.courriel FROM ads_adherents WHERE ads_adherents.courriel = '$email'");
*if($resultat !== ''){
set_record_owner("Adherents", $email, $courriel);
}
else
{
}
Thank for your help, ideas, etc.
Chrsitophe