close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

MySqli Authentication: How to Convert Text Password to Encrypted Password

Thread began 8/07/2018 7:28 am by astrostrom | Last modified 8/24/2018 10:02 pm by astrostrom | 2477 views | 10 replies


I will probably need a premium support ticket on this. However, I have tried to update one of my log-in forms by joining the new table with an existing table using the common email address. However, I am getting "There is an error in your SQL syntax" when I try to log-in. So something is not right.

sa_user is my new table
class_admin is the data table I need to access
sa_password is the new encrypted password
class_email and sa_email are identical in both tables

Thanks for any help.

$Authenticate = new WA_MySQLi_Auth($mysqli2);
$Authenticate->Action = "authenticate";
$Authenticate->Name = "user";
$Authenticate->Table = "sa_user";
$Authenticate->addFilter("sa_password", "=", "s", "".((isset($_POST["sa_password"]))?$_POST["sa_password"]:"") ."");
$Authenticate->addFilter("class_email", "=", "s", "".((isset($_POST["class_email"]))?$_POST["class_email"]:"") ."");
$Authenticate->storeResult("class_admin_id", "class_admin_id");
$Authenticate->AutoReturn = false;
$SuccessRedirect = "en/index.php";
$FailedRedirect = "log_in_failed_en.php";
if (function_exists("rel2abs")) $SuccessRedirect = $SuccessRedirect?rel2abs($SuccessRedirect,dirname(__FILE__)):"";
if (function_exists("rel2abs")) $FailedRedirect = $FailedRedirect?rel2abs($FailedRedirect,dirname(__FILE__)):"";
$Authenticate->SuccessRedirect = $SuccessRedirect;
$Authenticate->FailRedirect = $FailedRedirect;
$rsMarket = new WA_MySQLi_RS("rsMarket",$mysqli2,1);
$rsMarket->setQuery("SELECT * FROM class_admin INNER JOIN sa_users ON class_email = sa_email WHERE class_admin_id = ?");
$rsMarket->bindParam("i", "".(isset($_GET['class_admin_id'])?$_GET['class_admin_id']:"") ."", "-1"); //colname

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...