I have a picture in sec_users, I put in global variabl ebut shows in worng way.
Any rcomendation? size, type , etc
regards
Ramiro
I have a picture in sec_users, I put in global variabl ebut shows in worng way.
Any rcomendation? size, type , etc
regards
Ramiro
Hi Ramiro
It seems that it only works with images that are on the server. So I download the image to tmp and use it with a global variable.
OnAplicationInit
datos_usuario();
PHP Method datos_usuario
[usr_picture] = ββ;
$check_sql = βSELECT name, email, picture FROM sec_users WHERE login=ββ . [usr_login] ."β";
sc_lookup(rs, $check_sql);if (isset({rs[0][0]})) // Row found
{
[usr_name] = {rs[0][0]};
[usr_email] = {rs[0][1]};
[usr_picture] = {rs[0][2]};
}
else // No row found
{
[usr_name] = ββ;
[usr_email] = ββ;
[usr_picture] = ββ;
}if([usr_picture] != ββ)
{
file_put_contents(ββ¦/_lib/tmp/β. [usr_login], [usr_picture]);
[usr_picture]= ββ¦/_lib/tmp/β. [usr_login];
}
On user Menu, I used the global variables to show picture, name and description
Bye
so how dows sc knows in which folder to look for the picture if the picture is stored in a folder like β/afb/profiel_afbeeldingβ
canβt seem to get this working
tried this
if([usr_afb] != ββ)
{
file_put_contents(ββ¦/_lib/file/afb/profiel_afbeelding/β. [usr_login], [usr_afb]);
[usr_afb]= ββ¦/_lib/file/afb/profiel_afbeelding/β. [usr_login];
}