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