Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8165393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:31:35+00:00 2026-06-06T19:31:35+00:00

I just don’t know what to do, and don’t know how to search about

  • 0

I just don’t know what to do, and don’t know how to search about this weird problem. Here is is:

All the connection on the page are working correctly, just in case:

I Have this code to update an Email on the Database

$fUsername = mysql_real_escape_string($_GET['user']);
$fPassword = mysql_real_escape_string($_GET['senha']);
$fEmail = mysql_real_escape_string($_POST['fEmail']);

$sql = "UPDATE usuario SET email='$fEmail ' WHERE username = '$fUsername' and senha = '$fPassword'";
$result=mysql_query($sql);

Now, the Problem:

This query is not Updating the “Email” field on the BD. It just makes the field empty.

If I echo the $sql var, I get this:
UPDATE usuario SET email=’teste@gmail.com ‘ WHERE username = ‘teste1’ and senha = ‘e10adc3949ba59abbe56e057f20f883e’

If I ran manually this query on the mySQL, it updates the field like I want.

If I manually pass a value to the $fEmail var ($fEmail = “teste@gmail.com”). It works just fine.

The only way that don’t work is when I take the value from the Form.

Does anyone have the solution for this? D:

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T19:31:36+00:00Added an answer on June 6, 2026 at 7:31 pm

    You are using $_GET for the username and password, and $_POST for the email. Check your form actual submit method, and fix the relevant data fetching.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a problem and I just don't know how to solve this (relatively)
Maybe I just don't know enough about structs and have been using them blindly
Can anybody help with this code I just don't know where I am going
I just don't know how to solve this altough it's probably fairly simple. I
Maybe I just don't know what to search for, but I'm going a little
I just don't get it where is the problem but here's the error: Fatal
Maybe I am over complicating this in my head but I just don't know
I just don't get it, why this way of .focus callback is not working?
I just don't quite know how to handle this situation I'm dealing with. I
My problem is fairly easy but I just don't know how to solve it.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.