kaito
Member
Hi to everybody:
I am new at Fabrik (and also to proggramming, that´s why I love Fabrik). I need help with an error that has me stucked in the mud.
I have a form with 2 fields (see form.jpg attached):
- afab_cursosalumnos_id_curso , is a databasejoin element
- afab_cursosalumnos_clave_usuario , is a field element
I want to make a php validation for afab_cursosalumnos_clave_usuario element. Php validation is to compare afab_cursosalumnos_clave_usuario value versus afab_cursos_clave_curso value (that is in another table), if they are the same, validation return true and is ok.
To obtain afab_cursos_clave_curso I need to perform a sql query inside the php code (see php_validation.jpg attached) , but I need to embed in the sql consult the raw value of the first field of this form (afab_cursosalumnos_id_curso).
Form gives me validation error when I place $value into where clause, but if I comment firts sentence and replace $value with real raw data (1) from sql table (see php_validation_2.jpg attached) it works !!! So, there is something I am making wrong in the syntax but I don´t know what it is...
Please, any help will be welcome.
Ricardo
I am new at Fabrik (and also to proggramming, that´s why I love Fabrik). I need help with an error that has me stucked in the mud.
I have a form with 2 fields (see form.jpg attached):
- afab_cursosalumnos_id_curso , is a databasejoin element
- afab_cursosalumnos_clave_usuario , is a field element
I want to make a php validation for afab_cursosalumnos_clave_usuario element. Php validation is to compare afab_cursosalumnos_clave_usuario value versus afab_cursos_clave_curso value (that is in another table), if they are the same, validation return true and is ok.
To obtain afab_cursos_clave_curso I need to perform a sql query inside the php code (see php_validation.jpg attached) , but I need to embed in the sql consult the raw value of the first field of this form (afab_cursosalumnos_id_curso).
Form gives me validation error when I place $value into where clause, but if I comment firts sentence and replace $value with real raw data (1) from sql table (see php_validation_2.jpg attached) it works !!! So, there is something I am making wrong in the syntax but I don´t know what it is...
Please, any help will be welcome.
Ricardo