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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:56:23+00:00 2026-06-08T10:56:23+00:00

I’m trying to make a login script. I downloaded mysql, xampp, wamp. Already had

  • 0

I’m trying to make a login script.
I downloaded mysql, xampp, wamp.
Already had filezilla.
I started off messing around in xampp control panel
trying to figure out how to make a database so i can make a table for username, password.
I installed phpmyadmin finally got it to accept my host, user, pass
then i realize i see this error in localhost/phpmyadmin

Error

SQL query: DocumentationEdit Edit

SELECT tables
FROM phpmyadmin.pma_recent
WHERE username = ‘root’

MySQL said: Documentation

1142 – SELECT command denied to user ”@’localhost’ for table ‘pma_recent’

I’m really frustrated.
I want to uninstall everything and restart but i don’t know exactly what to download.
After i uninstall everything should i just download xampp as i hear it comes with mysql, phpmyadmin or what?

I think im having trouble because i can only find outdated tutorials on how to make login scripts, and also everybody uses different webservers or w/e.

I also need help understanding this code…
should i leave localhost as it is?
?? user pass
$conect = mysql_connect(“localhost”, “root”, “123”)

mysql_select_db”whatsmydb?”

Would i replace whatsmydb? with users?

This is what i see under databases
information_schema Check Privileges Check Privileges
mysql Check Privileges Check Privileges
performance_schema Check Privileges Check Privileges
sakila Check Privileges Check Privileges
test Check Privileges Check Privileges
users Check Privileges Check Privileges
world Check Privileges Check Privileges
Total: 7

The more and more i try the more and more i get confused LOL
Can someone please help me create a login script and
what should i use to create it?
Does anyone have a new tutorial for mysql5.5?
Why am i getting this error?
How do i setup a table containing usernames passwords?
I am toooo confused where shall i start?!?!?!!?!?!?

  • 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-08T10:56:25+00:00Added an answer on June 8, 2026 at 10:56 am

    You have not included the PHP tag for this and it sounds like you’re trying to use PHP connection code to access a MySQL database. You need to first understand a couple concepts with your server environment.

    1. Your Server is the computer running the software
    2. Your Database Server is MySQL (software running on the computer)
    3. Your Host is the IP address or HOSTNAME of the computer (i.e. localhost or 127.0.0.1)
    4. Your Database Name is the name of the database you create (I’ll get to that)
    5. PhpMyAdmin is a web-based application that allows you to manipulate your MySQL database

    Okay let’s start with PhpMyAdmin and creating your first database:

    If you click the “house” icon on the left you will be on the home screen and you will see a form field in the main content area you can type in a database name and “Create New Database” then click “Create”. Type in myfirstdb if that is the name of the database and click “Create”

    This will refresh the column to the left and there is a drop-down (combo) menu that displays the database names (like the ones you mentioned). You should now see myfirstdb listed there too. Select it.

    Now you will see very little content but in the right main content area at the bottom is a form field that allows you to create a table name and determine how many fields it has. Type in users and select 4 as the number of fields. Then click “Go” to the far right.

    A form displays 4 rows and you must name your fields (columns) and I suggest you name the following and choose the following data types:

    • id INT AUTO_INCREMENT
    • name VARCHAR(48)
    • username VARCHAR(24)
    • password VARCHAR(24)

    • be sure to check the small key icon next to the id field to declare it as primary key. Then click “Go” to create your table users.

    Congratulations, you’ve created your first table. Now if you’re feeling brave, you could skip these steps and click the “SQL” tab in PhpMyAdmin and paste the following SQL code and it will create the table as well:

    CREATE TABLE users (id INT AUTO_INCREMENT, name VARCHAR(48), username VARCHAR(24), password VARCHAR(24), PRIMARY KEY (id));
    

    The code you were trying in your question is PHP code to connect to a database. Here is an example of a proper connection assuming you followed the instructions above:

    <?php
    // Make a MySQL Connection
    mysql_connect("localhost", "user", "pass") or die(mysql_error());
    mysql_select_db("myfirstdb") or die(mysql_error());
    
    // Retrieve all the data from the "example" table
    $result = mysql_query("SELECT * FROM users")
    or die(mysql_error());  
    
    // store the record of the "example" table into $row
    $row = mysql_fetch_array( $result );
    
    // Print out the contents of the entry     
    echo "Name: ".$row['name'];
    echo "User: ".$row['username'];
    echo "Pass: ".$row['password'];
    
    ?>
    

    Note that we have not stored any data into your table, so you can click the “Insert” tab in PhpMyAdmin for that selected users table and insert rows, or you can insert them using SQL. Example SQL to insert a couple users (click the SQL tab and paste this):

    INSERT INTO users VALUES (1, "My Buddy", "user1", "password1"), (2, "My Enemy", "badguy1", "password2");
    

    From here you really need to read some tutorials online step-by-step to create an application. Your login script will require HTML programming for your form, then PHP programming to receive the form submission, then PHP + SQL programming to check the user against the database. Search for an example and use these basics to create what you need.


    ** added bonus for your generous rating **

    Check this out:
    – http://www.html-form-guide.com/php-form/php-login-form.html
    – http://www.phpeasystep.com/phptu/6.html (might be better)

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm trying to create an if statement in PHP that prevents a single post
I am trying to loop through a bunch of documents I have to put
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example

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.