Forums: Limit added records - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Limit added records limit added records Rate Topic: -----

#1 User is offline   epanc 

  • Member
  • PipPip
  • Group: Members
  • Posts: 18
  • Joined: 23-March 11

Posted 14 March 2019 - 05:37 PM

Hi, in the table "titles" I need the user to enter only 1 record (ver. Phprunner enterprise 10.0).
"titoli" table:
id_lavorat
cod_lav_re
e-mail
"Users" table:
id_us
user
password
> This code in "before record added" (of "titoli") does not work:
$ rs = CustomQuery ("select` cod_lav_re` from titoli where id_lavorat = ". $ values [" user "]);
$ Data = db_fetch_array ($ rs);
if ($ data ["` cod_lav_re` "] == 1) {
return false;
}
else {
return true;
}

I don't understand where the mistake is!
Thank you.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users