SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist AlexC's Avatar
    Join Date
    Oct 2000
    Location
    Sheffield, UK
    Posts
    437
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK...mysql data wont go into my sql table

    i have a login form with a lot of fields, which (should) pass the data to doregister.php

    Code:
    //DoRegister function
    <?php
    mysql_connect("localhost", "xxxxx", "xxxxx");
    mysql_select_db(atomco_members);
    mysql_query("INSERT INTO users (sesid, username, password, name_first, name_last, gender, DOB, about_you, email, url, url_title, city, country, ICQ, AIM, MSN, Yahoo, lastaccess, level) VALUES ('1', '$username', '$password', '$name_first', '$name_last', '$gender', '$month $day| $century$decade', '$about_you', '$email', '$url','$url_title', '$city', '$country', '$icq', '$aim', '$msn', '$yahoo', '121212', '1')");
    ?>
    it dosen't insert!

    one thing thats odd is theres no variables e.g doregister.php?username=variable&password=variable after the do register.php part

    PLEASE HELP!

    Alex

  2. #2
    SitePoint Zealot
    Join Date
    Jun 2000
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If this part isn't the problem ('$month $day| $century$decade') which I reckon it is, what error message are you receiving please?

    Regards,

    Jason


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •