- Messages
- 5,508
- Reaction score
- 35
- Points
- 48
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:
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
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: