Jump to content

MYSQL Register: Check if code or email is available


Lanibox

Recommended Posts

Hey, im making vb.net program with key register form, but I got problem with checking if code or email is available.

 

Here is code I got now.

 

"SELECT * FROM users WHERE code = '" + acc.Text + "' AND password= '" + TextBox4.Text + "'"

 

It should be like

 

If code = available: true then register:true

If email = available: true then register:true

If code = available:true and email = available:false then register:false

If code = available:false and email = available:true then register:false

 

Hope somebody can help with this :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.