My first MYSQL usage!

i dunno were else to put it :expressionless: so i put it in random :slight_smile:

Ok i have been wondering how to use flash and im sure everyone knows my just plain "STUPID:h: " but alough im a time wasting idiot ā€œI confessā€ i have succsesfully made a cool MYSQL login and create new user page!. I hope to use this later on in web design life.

steps

  1. put anything you want into the login area and click login. Invalid or incorrect username and pass.
  2. copy and paste the username and pass from login area to the account creation area click create.
  3. try loggin in again YaAHOO it works.

If you have problems with this email me (EMAIL), i dont mind if you say ā€œTOO BASIC!!!ā€ because this is just a tester and later on i will be making a bussiness opr anything that springs to mind using login with MYSQL

good thing is - INSTANT ACCESS NO ACTIVATION EMAILS!!

a link?

link (and yes this is very basic lawls).

soz www.pencaderweb.co.uk/MYSQL/index.php

The forum didnt work just them for me

You can create a username thats already in the table. Might want to fix that.

ok ill try and fix it if i had the brain to lol.

Anyone know a code to do what Templarian is wanting me to fix???:sen:

$checkusername = mysql_query(ā€œSELECT * FROM users WHERE username = ā€œ"$_POST[ā€˜usernameā€™]"ā€ā€);

if($checkusername > 1) {
echo ā€œUsername takenā€;
exit();
} else {
rest of sign up code in here
}

also might wanna star out the password input fieldā€¦ :wink:

the first tute i ever learnt and it was easy as heck- yet i still suck at phpā€¦

:lol:, ill try and help ya lol. I might start on a new guets book for ya

Ok i read your posts and i will do the following -

  1. Star The Input Of The Password Field
    2.Try and fix the Username problem :slight_smile:

@SEB

$checkusername = mysql_query(ā€œSELECT * FROM users WHERE username = ā€œā€$_POST[ā€˜usernameā€™]ā€"");

if($checkusername > 1) {
echo ā€œUsername takenā€;
exit();
} else {
rest of sign up code in here
}

What do you mean ā€œrest of sign up code hereā€?

Its self explanatory

Ok sorry seb and thanks its fixed now View it here http://www.pencaderweb.co.uk/MYSQL/V1/index.php

Congrats!.. sigh i remember my first PHP/MySQL login script. Back at schoolā€¦my ICT teacher was well impressed! lol he was uselessā€¦ (skills: basic knowledge of HTML etcā€¦)

nice work.

thanks im very happy i figured out how to that lol as the welsh would say

"Well Chuffed:smirk: "

ok, i have updated it a lil bit and now it shows the last user to create an account and shows amount of records the data base has :nerd: