Jul 20, 2008

Help With Database

Free Web Hosting, No Ads > CONTRIBUTE > The Internet > Web Design
Pages: 1, 2, 3

free web hosting

Help With Database

Unstoppable
I know I might sound a bit novice, but I'd like to know how to make a register and login database. I'm making a serious website for the very first time and I can't find on internet how to make one (don't even know how it is named).
I would really appreciate me if someone could link me to a tutorial or give me the explanation, also the program to use (I think Microsoft Access is good?)

Reply

shadowx
Do you mean you want this to be live on the internet as part of a website?

If so the prograsm to use isnt microsoft access, instead you will need to use, either php or ASP and MYSQL.

Dont worry its not as confusing as it sounds, though some coding knowledge or help would be usefull to you.

MYSQL is simply a database system and there is a tool called phpmyadmin which is basically the "program" you use to change these databases. It looks like a webpage and infactm it is a webpage, but its the best way to work with these databases.

What you will need to do is firstly find out what your webhost supports, this can usually be foud when you register under its features list, you need to look for two or three things, "PHP support" or "PHP version x.x" or "ASP support" and definately something similar to "XX MYSQL databases/tables" that means that you will be able to have a database and the code needed to work with it, on your website.

From there you might be able to find some code on the internet, i would look but im in college at the moment. If you can find something like a "PHP/MYSQL user login system" script then come back and someone can help you install and check it. If not then come back and ask for one to be made, if i had the time id do it myself but ive got another coding thing to do so i cant but someone else might be able to.

Its not mterribly complicated though if this the first experience with these database and PHP/ASP coding languages then it might be a little more dificult for you but we can all help hopefully!

Good luck! try searching for the code on the internet first and then come back here and let us know what you find, if anything.

 

 

 


Reply

slushpuppy
Microsoft access is just a database management software. If you know php, you can grab the username/password from a html form using the $_POST/$_GET super global variables and store it into the mysql database. Examples of using the $_POST/$_GET can be found here http://au3.php.net/manual/en/language.vari....predefined.php and for the mysql syntaxes, http://dev.mysql.com/doc/refman/5.0/en/sql-syntax.html. You can visit PHP help IRC chatrooms on the various networks should you encounter any problems.

Reply

shadowx
Thats true, though if there is a lot of work to do with sessions and the database queries and IF's and such.. and if you dont know php then that can be pretty hard even to find the right code let alone get it to work!

Though as i said if someone can find the code then im sure a few people from this site can help out in fixing it up to work with your settings.

Reply

Unstoppable
I got a Login System, but now I'm having trouble with linking it to the database. It would be highly appreciated if someone could make me a working login system with a database and send me the files. Otherwise I'll just look around some more and try to find the answer.

Reply

serverph
here is a COMPLETE Login System using PHP and MYSQL:
http://www.trap17.com/forums/complete-logi...stem-t7247.html

still another SIMPLE User System (also PHP and MYSQL driven):
http://www.trap17.com/forums/simple-user-system-t46278.html

if these two don't fit the bill for you, head on to our TUTORIALS section, and look around for what you require. it may already be somewhere in there; you just have to dig for it. tongue.gif
http://www.trap17.com/forums/tutorials-f169.html

Reply

Unstoppable
ok really thx all, but now in this tut http://www.trap17.com/forums/complete-logi...stem-t7247.html in the conn.php, there is a referral to a database. Can the database be empty or what does have to be in it? And can it be done in Access? thx for great help all, just beginner with programming. Next year i'm gonna study it tho (in university)

Reply

Saint_Michael
with the conn.php file oyu need to fill in the DB I give you an example:

DB name: forum_forum
User name: forum
password: 12345

Ok now with that MySQL info you just fill in the file as so.

CODE
$host = 'localhost';
$user = 'forum';
$pass = '12345';
$db = 'forum_forum';
mysql_connect($host,$user,$pass) or die ("Database is unavailable. Please try again later.");
mysql_select_db($db) or die ("Database is unavailable. Please try again later.");


Now what this file does is connect your MySQL database to your php scripts and thus be able to store information from a users registration such as name and password a person uses. Now with most log in scripts you have to keep them very secure especially your DB or a hacker could compromise the system and be able to steal or delete your files, if I remember correctly on log in scripts most of them will be 0666 or 0755 as for a somewhat more stable secured script.

Also I would recommend you check out pixel2life.com as they have several login system scripts that are well detailed such as the ones on here and some go into a lot of detail how to set up and secure them.

Reply

Unstoppable
so basically only a database with username, password and email with username as primary key?


Hmm, I completely installed the login system, but the submit buttons dont work. If i click them, nothing happens, help please?

Reply

truefusion
QUOTE(Unstoppable @ May 18 2007, 03:48 PM) *
Hmm, I completely installed the login system, but the submit buttons dont work. If i click them, nothing happens, help please?

The only reason i can think of why it doesn't work is that it is not inside the FORM element. For example, it should look similar to this:
HTML
<form method="post" action="">
<input type="submit" value="Submit" />
</form>

Reply

Latest Entries

techclave
I think there are some tutorials about making login systems for your website, here at the trap17 tutorials section. Maybe you would want to try searching at the tutorials forum, here at trap17..

Reply

serverph
QUOTE(Unstoppable @ May 20 2007, 11:11 PM) *
Ugh, does anyone have time to make me a complete login system that works, including the database? Thx in advance


for what purpose is this login system anyway? as you are having a hard time creating one, why don't you just use ready-made scripts for this? you may try scripts from http://www.opensourcecms.com/ for your particular requirement. CMS stands for "content management system"... and if you are creating something you want for online use -- be it a blog, a portal, a forum, or whatever -- you can find open source scripts there. any standard CMS you can find there comes with a complete login system, mainly for admin purposes, but is also used to register new users if you want. the main selling point for these scripts is that you can easily manage your content, and have a ready support system if you run into trouble, since these are widely used online. you can just drop by their respective online communities or forums to ask for assistance if you run into trouble. plus, these are regularly updated because of the development teams and users behind them.

but then again, these would require your understanding of the databases involved, be it PHP + MySQL or ASP + MS Access. and since it seems that the database is your primary stumbling block, i suggest an alternative which uses "flatfiles" or just a basic text file as your database. if you need help with that flatfile system, just ask for it in that thread assigned for it. good luck!
http://www.trap17.com/forums/flatfile-user...nup-t40598.html

Reply

Unstoppable
Ugh, does anyone have time to make me a complete login system that works, including the database? Thx in advance

Reply

jlhaslip
Start your Text Editor and open the Start your Web Browser.
Start your WAMP server.
Start your Mysql server.
Select to begin phpMyAdmin from your web Browser.
Once you have the phpMyAdmin start page, click on the name of the Database in the drop-down list on the left hand side.
Click on the SQL tab.
From the file you have in that zip file you posted, there is a file with an "SQL" file extension. Start your Text Editor and open that file, Cut and paste that file into the textarea on the SQL page to have phpMyAdmin run the Query to build the Table you need for the Login system.
Go back to the phpMyadmin Main page and look to see if the table has been created. The number beside the Database name is the number of Tables for the database. Your install should now show (1) if this new table has been successfully added.

Reply

Unstoppable
Sorry for double post, but I cant seem to make a database in WAMP, I tried to do it in SQLitemanager and PHPmyadmin. It doesnt appear to be creating a database and in PHPmyadmin I create a database, but when i try to make a table it keeps returning errors about the number of fields...Can anyone help, yet again

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Pages: 1, 2, 3
Similar Topics

Keywords : database

  1. Is The Database System Gone Again?
    Errors on PHPMyAdmin again (9)
  2. Database Or Pdf
    Best way to list books on my site (1)
    Hi all, I am not sure if this is the right place to post but I'm sure you'll tell
    me if it's not. My problem is this: I have a website where I sell books and it's one of
    those simpleton sites where I don't need to know code, I just click icons etc Anyway, I can
    upload images to the server and need to have them in different resolutions and link from a thumbnail
    to the larger picture. What I am trying to say is I have about 6000 books to display on my
    website which is impractical as it takes me about 10 mins to load 1 copy. What is the ....
  3. Phpmyadmin
    Create new database: No Privileges (6)
    i can not make a sql for diff srcipt, but the sricpt i have is php, DJ-cpanel.. all tho i can not
    install it the error is like this Creating Database Tables No database selected there a mysql
    database is made, but i can not use it for othere stuff... plz note that this is Free script and not
    for paid.. is there a way that the myqsul can not use sql other scripts? or it maybe not working...
    but i am not sure if the script not working or it can be the server may be down on mysql...? ....
  4. How To Manage The Database For E-books Website In My Sql?
    (3)
    I wanna know how to manage the database for website of e-books with forum in it, n the database is
    in mysql. PLZ HELP ME!....
  5. I Need Help Transferring Sql Database?
    (3)
    ok so i am trying to transfer mediawiki's but i am having trouble with exporting importing the
    database. I am using phpmyadmin on both sides of the hosts. When i do the import i get this.
    QUOTE SQL query: -- -- Database: `apolopedia` -- CREATE DATABASE `apolopedia`
    DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; MySQL said: Documentation #1044 - Access
    denied for user 'jaenagle'@'localhost' to database 'apolopedia' I tried to
    give my user all rights, but it gave me this also. QUOTE SQL query: GRANT A....
  6. Ms-access Database Question
    Allowing Web Access to the Informaton (3)
    Hi. I wanna know if there is a way of accessing an MS-Access database so that my site can extract
    data from it and make it avilable online. I have an accounting package that saves everthing in an
    MDB file and I want that info available for my clients from whereever thay are. Split Topic ....
  7. Index In A Mysql Database
    Make the numbers follow (3)
    I hope I am on topic here (It does have to do with web design, after all). I have noticed that in a
    MySQL database, the 'id' field just keeps its numbers for every record, with the backdraw
    that, whenever you remove (a) record(s) from the table, you get your list numbered as eg.
    1,5,6,7,12,25 etc. This makes it a bit difficult of keeping track of the number of records in your
    table. Is there a way of achieving (either in PHPMyAdmin or through the use of PHP) that the id
    field in your table gets sort of 'refreshed and updated' so you have a clearer view....
  8. Transferring From Old Server To New Server "database And Forum" [resolved]
    I'm in need of aid from admin in transferring phpbb database and f (5)
    Ok, I have a question and would preferable ask if its possible as well. Currently I have a phpbb
    forum (version 2) placed among another server. Thing is I would like to import it among my trap17
    account, as this is the place I intend to stay as its so great. Problem is I have about 40+ users
    already registered among that forum and have several mods implemented within it as example Cash Mod,
    Jobs Mod, Rank Banners etc and fiblack template. I have tried using a few guides in trying to copy
    my database over here but to no avail it is rendered useless. So in short is there a....
  9. What Value Would I Use To Insert This Data?
    Help on insertion of data to database? (4)
    I am learning slowly but surely and I know some of you probably getting tired of my questions. ^^;;
    However, I believe one can not learn without asking questions. So.. if I get too bothersome.. just
    point me to some books or something. lol XD // Make a MySQL Connection mysql_connect("localhost",
    "name", "password") or die(mysql_error()); mysql_select_db("at2927_abq") or die(mysql_error()); //
    Insert a row of information into the table "example" mysql_query("INSERT INTO members (pasture)
    VALUES('Timmy Mellowman', '23' ) ") or die(mysql_error()); ....
  10. How Do I Connect To Live Database With Php Script?
    while being hosted with ComputingHost (6)
    I am not new to programming. I want to create a form to add some values into my tables, the code
    are all working. But I am not sure what is the URL to connect to my site's database. All along,
    I have been testing through MAMP, which provides a local copy of mySQL. Can anyone lend me a hand?
    My site's URL is http://limetouch.com/ ....
  11. Database With Mysql++
    getting mySQL++ to work with trap17 (7)
    Hi, I'm trying to build an online game and figured the easiest way to do the server list would
    be to make a mySQL database for it; however, I use the con() command on the IP i get from pinging my
    website and I always get an abnormal program termination; however, it will work with the mySQL on my
    own machine. The code is below: CODE #include <iostream> #include <iomanip>
    #include <mysql++> #include "pass.h"//holds my password (i program at
    school) int main(void) {     Connection con("t3jem3_test","....
  12. Best Free Online Game Database
    (1)
    I find this to be an excellent site for free games of all types. It is where I find all my games
    /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />
    http://play-free-online-games.com/games/games_all.html Recommended: Blockland....
  13. Php With Simple Csv List As Database, What Do U Think?
    (2)
    I've designed a php website and i used simple CSV file as my database because of few reasons
    my client had to pay more to active MySQL database was a simple product list it was easy to
    convert product list from existing Excel file to CSV it is easy to make any changes so i have few
    files to convert to CSV if i wanna update the website. I know it's less secure specially if
    it's an online business (which is not). question is : what are disadvantages? is that slower
    than MySQL? is there more possibility of occurring bug? is that less professional? or ......
  14. Forum Database
    Forum Database Space and its capacity to hold content (9)
    Okay, I have a forum which is growing daily. Even though members aren't that many, I'm still
    concerned over my database space and its capacity to hold the forum's content. Since post counts
    take up database space, the remaining space will decrease daily, albeit by little amounts. Still, it
    will decrease anyway and eventually my database for that forum will run out of space. My question
    is: 1. Is there any way to possibly create a new database to continue holding the old
    database's increasing data? As in, my old database is there but its full and I creat....
  15. Mysql Database Space
    (3)
    How much space does Trap17 offer for MySQL database in terms of MB? I need to know because I intend
    to host a forum for my classmates and it will be a gathering place for us. We are all ex students of
    a school so the forum will be a handy hangout place to get info and status about each other, since
    we're all seperated now. So, the forum takes up 150KB in my database and its increasing daily
    due to increasing number of posts and members. The day will come when it hits the 12 MB database
    space my current free host offers. So, any input or help is very much appreciate....
  16. Treating .csv Files As Database Data
    Showing .CSV data on a web page (2)
    I use a nice program (which I helped to beta test) called ' Simfatic Forms ' to generate
    forms on web pages. The only problem is that it does not (yet) support MySQL databases, it saves the
    form data as a .CSV file. Now I was wondering if you can do the same with a .CSV file as you do
    with a MySQL databse, ie. displaying the data in that file on a web page which adjusts automatically
    as data are added to the file. To clarify: eg. if I make a form to sign a petition online, the data
    are saved to a .CSV file every time someone fills in the form, is it now possibl....
  17. Vb Select Mysql Database
    (2)
    I am trying to make a script to pull mysql data into a vb application. This will connect to windows
    media player so that people can select a song through my website, and windows media player would
    play it through vb automatically. Can anybody help me?....
  18. Daas (database As A Service)
    (3)
    DaaS (Database as a Service) is becoming the next big thing in Data Storage where you just call
    API's for all your data needs and forget about DB servers, configs etc. For more about this
    read the below links... http://www.amazon.com/gp/browse.html?node=16427261 --> Amazon
    started this... http://longjump.com/ --> Yet another provider These services are really
    really very useful in terms of developing and deploying web applications. Lots of issues like
    setting up new servers and configuring them, upgrading them will all together gets away in these ....
  19. Free Access To Mysql Database Converter
    Free Access to MySQL Database Converter (1)
    QUOTE DB2MYSQL Converter is a totally free software that will convert Microsoft Access Databases
    to MySQL. It’s easy fast and accurate MS Access to MySQL Database Converter easily converts database
    records of Microsoft MS Access databases to MySQL server. DB2MYSQL is very easy to use, just follow
    the simple screens and let the program automatically do all the work for you. We use a very fast
    conversion algorithm to provide you with the best possible performance level. Its Features include:
    Supports common MySQL data types and attributes. Supports common MS Access c....
  20. Database Migration - Seditio To Joomla
    any help is needed (1)
    Hi guys! I was desperately looking on internet for any help with migrating Seditio database to
    Joomla.. I`m admin on site which has more than 2500 members and day by day I get annoyed by
    pretty dumb solutions in Seditio.. can anyone tell me how to migrate the seditio site to joomla?
    any tutorials on internet on database migration? thanks....
  21. Changes In Phpmyadmin
    Access to my database from program not working anymore. (0)
    I was wondering if something has changed in the MySQL or PHPMyAdmin section of Trap 17. (Hope I am
    explaining this correctly). I run a newsletter system on my website and the details of the people
    who subscribed are in a MySQL database. To get those data from the database and to send the
    newsletter to all subscribers I use a program called "Qios Pelican". Up to now it always worked
    perfectly, but now it cannot seem to retrieve data anymore, yet I have not changed anything to my
    setup. I use the MySQL OLEDB Provider driver to connect, and in case it helps, here are the ....
  22. Best Database Software?
    (1)
    I'm quite new to creating and managing databases - yesterday I installed Filemaker Pro 9 and my
    initial thoughts are that it's amazing! Only just starting to get to grips with it - think
    it'll take some time to master it. What Database software do others use and what do people
    think of Filemaker Pro? Advantages/Disadvantages? ....
  23. Accessing Mysql From Javascript
    Javascript to communicate with database (4)
    I found a nice program which allows you to put quizzes on your web site. You can design your own
    questions, set the layout of your page, and there is also a possibility of having the results
    emailed to you. It further offers a facility to store the results and all that, all you have to do
    is put a link in the program, telling it which page takes care of that. However, when I look at the
    HTML code the program generates, I see that most of it is written in Javascript. Obviously, it also
    uses variable names, but as I don't know any Java, I was wondering if those variab....
  24. Php Search Engine Script For Mysql Database
    (11)
    A search engine is provided to facilitate the user with undemanding and clear-cut search options.
    The search facility includes simple search, search by title, search by word/phrase, ect… Thus, the
    user is at a safe distance from the risk of selecting files/folders ambiguously. In addition, a
    history of recent searches can be preserved for future perusal. Now
    day’s visitors have a large option for his needs on internet and so visitors are not vesting their
    time by following the dead links on your site. So a search engine is essential for your....
  25. Truefusion Shoutbox
    No Database required! (31)
    After several tests, i think it's good enough to be released. Please report any problems in
    this topic. About the shoutbox: QUOTE It's supports many bbcodes that we're all used
    to. Over 60 smileys. No database required for shout storage: All stored on flatfile. XHTML valid.
    Installation is basically extract files, and chmod the files "shouts.log", "ipban.log",
    "wordfilter.log" 666. Compatible with standard-compliant browsers, and Internet Explorer. Admin
    Cpanel: Edit/delete shouts, IP ban/unban, Word Filter. Users can delete/edit their shouts within a....
  26. Quick Question
    Is there a limit on the size of the MySQL database? (8)
    Question's in the title!....
  27. Can You Add Images Into A Mysql Database?
    Using Php? (20)
    I'm learning php in class right now, but I'm still not that good at it, what I'm
    wondering is when I write the php so that it can connect with a database, can I at the same time
    have it that it is able to display back images that I choose. Like, I want a search feature, where
    you can search for a keyword, and it will bring back a list of all the possible entries with that
    keyword, but each of these entries will have a photo associated with it. Now, do I put these image
    files directly into the database, or do I write the code to link them from my files to th....
  28. Connect To Remote Oracle Database With Toad
    i'm lost (6)
    Hey gang, long time no see, my bad! Anyway, I got me a question. Does anybody know how to
    connect to a remote oracle database using toad? When I read the docs for toad I get the impression
    that I have to have a local oracle installation in order to use toad, but that just seems silly. I
    guess I'm stuck at the point of trying to figure out how to tell toad where to look for all of
    the configuration information it needs for the connection if I don't have any "Oracle Home"
    directories. :crosses fingers: Peace!....
  29. Mysql Database Size
    related to the free database space (6)
    hi all! this is my first post /biggrin.gif' border='0' style='vertical-align:middle'
    alt='biggrin.gif' /> and i have a doubt, how much mysql space i am allowed to use... i mean how
    much is available for my free account....
  30. Import From Excel File Into Mysql Database
    (7)
    Has anyone tried using the excel import function that comes with phpmyadmin
    http://www.phpmyadmin.net/home_page/ - it does not require any additional plug-ins or scripts and
    is fairly straightforward to use. In phpmyadmin, if you click on the database table which you wish
    to import the data to , there is a link on the bottom left corner which says "insert data from a
    text file into the table" - although it says text file it still can be used to import an excel file.
    When you click on this link you will be taken to a page where you will be asked for the file name
    (the....

    1. Looking for database

Searching Video's for database
Similar
Is The
Database
System Gone
Again? -
Errors on
PHPMyAdmin
again
Database Or
Pdf - Best
way to list
books on my
site
Phpmyadmin -
Create new
database: No
Privileges
How To
Manage The
Database For
E-books
Website In
My Sql?
I Need Help
Transferring
Sql
Database?
Ms-access
Database
Question -
Allowing Web
Access to
the
Informaton
Index In A
Mysql
Database -
Make the
numbers
follow
Transferring
From Old
Server To
New Server
"databa
se And
Forum"
[resolved] -
I'm in
need of aid
from admin
in
transferring
phpbb
database and
f
What Value
Would I Use
To Insert
This Data? -
Help on
insertion of
data to
database?
How Do I
Connect To
Live
Database
With Php
Script? -
while being
hosted with
ComputingHos
t
Database
With Mysql++
- getting
mySQL++ to
work with
trap17
Best Free
Online Game
Database
Php With
Simple Csv
List As
Database,
What Do U
Think?
Forum
Database -
Forum
Database
Space and
its capacity
to hold
content
Mysql
Database
Space
Treating
.csv Files
As Database
Data -
Showing .CSV
data on a
web page
Vb Select
Mysql
Database
Daas
(database As
A Service)
Free Access
To Mysql
Database
Converter -
Free Access
to MySQL
Database
Converter
Database
Migration -
Seditio To
Joomla - any
help is
needed
Changes In
Phpmyadmin -
Access to my
database
from program
not working
anymore.
Best
Database
Software?
Accessing
Mysql From
Javascript -
Javascript
to
communicate
with
database
Php Search
Engine
Script For
Mysql
Database
Truefusion
Shoutbox -
No Database
required!
;
Quick
Question -
Is there a
limit on the
size of the
MySQL
database?
Can You Add
Images Into
A Mysql
Database? -
Using Php?
Connect To
Remote
Oracle
Database
With Toad -
i'm lost
Mysql
Database
Size -
related to
the free
database
space
Import From
Excel File
Into Mysql
Database
advertisement



Help With Database



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE