finishing my students database as been a problem, pls help. ( 3 Views )

no kitty!
  1. I'm building a database where students can enter their prefered profiles and when they want to view each data, they enter thier userids and password and it shows them their profiles on a page that belongs to them drawing their tables and fetching thier other informations.

    this will guide you through:
    /*
    mysql > create table users (
    >id int not null auto_increment primary key,
    >userid varchar(255) not null,
    >password varchar(255) not null,
    >firstname varchar(255),
    >dateofbirth DATE,
    >info TEXT);

    in the html form, it will look like this:
    <html>
    <body>
    <form action="<?$_SERVER['PHP_SELF']?> " method="post">
    <input type="text" name="userid" maxlength="20"><br />
    <input type="password" name="pass" maxlength="20"><br />
    <input type="text" name="fullname" maxlength="20"><br />
    <input type="text" name="dateofbirth" maxlength="20"><br />enter as in yyyy-mm-dd.
    <input type="submit" name="submit" value="submission"><br />
    <input tyoe="reset" value="Clear"><br />
    </form>

    php page will look something like this:
    <?php
    $dbcnx = @mysql_connect("localhost", "user", "password");
    if(!$dbcnx) {
    die("<p>Can't connect to the database server now</p>");
    }

    $entry=@mysql_query('INSERT INTO users SET
    etc....

    and the calling of the user's table will....

    When user enter his/her uerid and password, it get his/her information from the database and feel pleased.
    */
    please help.
    Haryoh

    (NİLÜFER, Marshall Islands)

  2. You might get more help in the php forum. If you ask an advisor they can move it for you.

    dan

    (polat, Uzbekistan)



Related Topics ... (or search in 1.720.883 topics !)

problem creating new sql database in phpmyadmin! pls. help! (11)
one problem keeping me from finishing cms (4)
fast write stream error: problem finishing conversion (4)
information is not going to database, pls check (7)
help with mysql database retrieval from php script pls (5)
php problem? or browser problem? pls help... (7)
computing average [was: pls pls pls help me...] (8)
problem pls help (1)
problem pls help me (4)




copyright © 2007-2031 Pfodere.COM ( 6 Pfoyihuee Online )

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 
1.8597