what is the error in my two queries ??

$sql="select secretQ,secretA from users where email = '".$email."' ";

 $out .= "<PassResetQ secretQ='".$row->secretQ."' secretA='".$row->secretA."' />";

Uhhh... This is PHP. Nothing looks wrong with the query.

What other PHP script do you have to execute and prepare the statement?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.