Quote from
luishp on March 6, 2022, 9:14 pm
@noyzen although I think your attempt should work, you can send the user name as a parameter too:
$sqlQuerys[0]="INSERT INTO post (user, text) VALUES (?, ?)";
Note that user information is sent back to your application when the user sign-in correctly as a JSON object to the callback subroutine, included the user name.
Returns a JSON object with user data:
id, username, email, level, error (wich would be empty if no error)
Regards.
@noyzen although I think your attempt should work, you can send the user name as a parameter too:
$sqlQuerys[0]="INSERT INTO post (user, text) VALUES (?, ?)";
Note that user information is sent back to your application when the user sign-in correctly as a JSON object to the callback subroutine, included the user name.
Returns a JSON object with user data:
id, username, email, level, error (wich would be empty if no error)
Regards.
noyzen has reacted to this post.