Ayabonga
Member
Hello guys,
I have two tables from PhpMyadmin: Users table , History table. I want to insert 3 values into history table but according to user logged-in. The username and password must be selected from the users table. Can you please help me structure the sql command.
I have two tables from PhpMyadmin: Users table , History table. I want to insert 3 values into history table but according to user logged-in. The username and password must be selected from the users table. Can you please help me structure the sql command.
B4A CODE:
Dim cmd As DBCommand = CreateCommand("save", Array As String(Remytxt.Text, Hennytxt.Text, Sodatxt.Text,Starter.Username,Starter.Password))
MSQL Command from B4J config file:
sql.save =INSERT INTO history(Remy, Henny, Soda) VALUES (?, ?, ?)
SELECT * FROM users WHERE Username = ? AND Password = ?