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 9070855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:47:15+00:00 2026-06-16T17:47:15+00:00

Please i’m going nuts on this thing. I have this form: echo <input type=’text’

  • 0

Please i’m going nuts on this thing.

I have this form:

echo "<input type='text'  name='user_id' value='".$id."'' />";
    echo "<tr><td>Emer</td><td><input type='text'  name='first_name' value='".$rows['first_name']."' /></td></tr>";
    echo "<tr><td>Mbiemer</td><td><input type='text' name='last_name' value='".$rows['last_name']."'' /></td></tr>";
    echo "<tr><td>Mosha</td><td><input type='text' name='age' value='".$rows['age']."' /></td></tr>";
    echo "<tr><td>Nr.Telefoni (Nr. i telefonit duhet te jete i formatit 06* ** *** **)</td><td><input type='text' name='phone' value='".$rows['phone']."' /></td></tr>";
    echo "<tr><td>E-mail</td><td><input type='text' size='25' name='email' value='".$rows['Email']."' /></td></tr>";
    echo "<tr><td>Qyteti</td><td><input type='text' size='25' name='city' value='".$rows['city']."' /></td></tr>";
    echo "<tr><td>Shteti</td><td><input type='text' size='25' name='country' value='".$rows['country']."' /></td></tr>";

The update code:

    $first_name= $_POST['first_name'];
    $last_name= $_POST['last_name'];
    $mosha= $_POST['age'];
        $phone=$_POST['phone'];
        $email= $_POST['email'];
        $city = $_POST['city'];
        $country = $_POST['country'];
        $id = $_POST['user_id'];

$query = "UPDATE users SET first_name = '$first_name',last_name = '$last_name',age = '$mosha',phone = '$phone',Email = '$email',country = '$country',city = '$city' WHERE user_id = '$id' ";
    mysql_query($query) or die ("Error in query: $query");
    ;

If i echo it i get this:

UPDATE users SET first_name = 'Al',last_name = 'M',age = '22',phone = '3545435345',Email = 'albana@al.com',country = 'Albania',city = 'Tirana' WHERE user_id = '1'

Then the issue is, i go back to the page where i have all users and the phone number there displays something totally different, it’s like a fixed number.
Please help me where i’m going wrong!
Is driving me nuts.

The query:

$sql='SELECT * FROM users WHERE Active = 1 AND user_id="'.$id.'"';
$result = mysql_query($sql) or die($sql."<br/><br/>".mysql_error());

Phone number is integer type.

  • 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-16T17:47:16+00:00Added an answer on June 16, 2026 at 5:47 pm

    if it displays as 2147483647, then it’ll be the data type problem use varchar(10) if the phone number starts with 0 or + otherwise use bigint

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

Sidebar

Related Questions

Please, look at this PHP script (sendingpage.php): $i=1; While(whatever){ echo <input id='ref.$i.' type='hidden' value='.$variable.'
Please have a look at this page Try to click one of big buttons
Please help me. im going crazy with this question. can anyone teach me? i
Please have a look at this code : class Foo { public int a;
Please forgive me if this question is dense. Background: We have several internal applications
Please look at this fiddle . I have different behavior for following two classes.
Please excuse my english... I'm French :) I write this post because I have
please have a look at the following code import java.util.ArrayList; import java.util.List; public class
Please help me somebody to convert unicodestring into string This is how i am
Please i need help, this code below works fine on my localhost, php5.3+ but

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.