+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: [REQ][2000 credits][PHP]From file to database

  1. #1
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    [REQ][2000 credits][PHP]From file to database

    I got a script that reads user info from files... I want it to read from sql instead.

    This is the database-structure I am usinf:

    Code:
    CREATE TABLE IF NOT EXISTS `users` (
      `id` int(11) NOT NULL auto_increment,
      `auth_username` varchar(30) NOT NULL,
      `auth_password` varchar(30) NOT NULL,
      `auth_mode` varchar(30) NOT NULL,
      `auth_confirmation` varchar(30) default NULL,
      `nickname` varchar(255) default NULL,
      `email` varchar(255) default NULL,
      `fullname` varchar(255) default NULL,
      `dob` varchar(255) default NULL,
      `gender` varchar(255) default NULL,
      `postcode` int(30) default NULL,
      `country` varchar(255) default NULL,
      `language` varchar(255) default NULL,
      `timezone` varchar(255) default NULL,
      `public` varchar(255) default NULL,
      PRIMARY KEY  (`id`)
    )

    This is the file that needs to be rewritten to use ^those^ instead of a file:
    http://pastebin.com/f2b351861

    Could anyone please do this? It's basically change everything in the script to read the userinfo from that table
    Last edited by galaxyAbstractor; 11-16-2008 at 01:36 PM.

  2. #2
    NaHoW is offline x10 Sophmore NaHoW is an unknown quantity at this point
    Join Date
    Aug 2008
    Posts
    244

    Re: [REQ][1700 credits][PHP]From file to database

    Can I do that? I will manually insert them if you give me access to your PHPMyAdmin

  3. #3
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495
    Quote Originally Posted by NaHoW View Post
    Can I do that? I will manually insert them if you give me access to your PHPMyAdmin
    What do you mean? I have already made the database part and the registration part. I need the rest of the script to use mySQL to read the user data instead of the file.

    Because if you do ?user=vigge_sWe, it will look after vigge_sWe.auth file where the settings are saved. I want it to check in the table "users" under the correct user

    *closed, tnl2k7 said he will try*
    Last edited by galaxyAbstractor; 11-04-2008 at 12:58 PM.

  4. #4
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: [REQ][1700 credits][PHP]From file to database

    Ok I need this again, but I will offer 2000 credits now.

  5. #5
    compwhizii is offline Banned compwhizii is an unknown quantity at this point
    Join Date
    May 2008
    Location
    The Moon
    Posts
    779

    Re: [REQ][2000 credits][PHP]From file to database

    I think I might be able to do it, lemme give it a swing

  6. #6
    compwhizii is offline Banned compwhizii is an unknown quantity at this point
    Join Date
    May 2008
    Location
    The Moon
    Posts
    779

    Re: [REQ][2000 credits][PHP]From file to database

    Nevermind, I can't do this. Who am I kidding.

  7. #7
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: [REQ][2000 credits][PHP]From file to database

    ok, hold on. i'll try this now. i need the 2000 points :D

    couple of questions, what's the t() and set_t()? what do those functions do and look like?
    Last edited by xPlozion; 11-22-2008 at 10:33 AM.

  8. #8
    balaji2u's Avatar
    balaji2u is offline x10 Lieutenant balaji2u is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Senthamil Nadu,India
    Posts
    410

    Re: [REQ][2000 credits][PHP]From file to database

    i think i can do this.send me all the script files that depend on the file to read the data and also the sample of data may be a database containing two or three records or just give me authentication to ur panel.im comfortable with any of these methods.
    Submit your Site Links Now ! >>> :cool:
    Live Aritlces Free Articles and Links Directory


  9. #9
    xPlozion's Avatar
    xPlozion is offline x10 Elder xPlozion is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    Delaware, USA
    Posts
    872

    Re: [REQ][2000 credits][PHP]From file to database

    do you have an example auth file that i can work off of?

  10. #10
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: [REQ][2000 credits][PHP]From file to database

    a:4:{s:13:"auth_username";s:5:"admin";s:13:"auth_p assword";s:32:"9cdfb439c7876e703e307864c9167a15";s :9:"auth_mode";s:4:"form";s:12:"auth_confirm";b:1; }
    a:0:{}
    a:9:{s:8:"nickname";s:9:"vigge_sWe";s:5:"email";s: 19:"test@gmail.com";s:8:"fullname";s:11:"test test";s:3:"dob";s:10:"1992-11-24";s:6:"gender";s:1:"M";s:8:"postcode";s:5:"44330 ";s:7:"country";s:2:"SE";s:8:"language";s:2:"sv";s :8:"timezone";s:16:"Europe/Stockholm";}
    If you mean the database, just create an new user at the register.php file
    Last edited by galaxyAbstractor; 11-22-2008 at 12:35 PM.

+ Reply to Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. sql database does not restore
    By softwork in forum Free Hosting
    Replies: 3
    Last Post: 05-20-2008, 06:47 AM
  2. Connection to mysql database (adapt file dreamweaver)
    By jabahoeoe in forum Free Hosting
    Replies: 3
    Last Post: 05-19-2008, 09:15 AM
  3. can't create database, weird. help!
    By snuffle4 in forum Programming Help
    Replies: 3
    Last Post: 02-01-2008, 06:48 PM
  4. Windows Sortcuts
    By Blazer9131 in forum Computers & Technology
    Replies: 3
    Last Post: 11-29-2007, 04:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers