There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot computer connection crash css dell display driver drivers email error ethernet excel explorer firefox firefox 3 game hard drive internet internet explorer itunes laptop lcd linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem router slow software sound trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
MySql, PhP, OmG !


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Swanny86uk's Avatar
Computer Specs
Junior Member with 25 posts.
 
Join Date: Dec 2006
Experience: Intermediate
22-Aug-2007, 01:56 PM #1
MySql, PhP, OmG !
Hey,

Few months back i decided to write a website for an idea I had. I've recently changed the idea and decided I need a login for my website (www.artboxuk.net/index1.html) now I have created the MySql database and table on the CPanel software provided by my hosting service. I was wondering how it was possible to connect the interface (Username / Password fields) on my website to the actual database. Is a special script needed or am I barking up the wrong tree ?! I havent added the login section to the website yet simply because I am getting myslef all confused over how to impliment it

Any advice would be greatly appreciated !

Thanks =)

Marc
pcpro17's Avatar
Senior Member with 245 posts.
 
Join Date: Oct 2006
Location: Wisconsin, USA
Experience: Advanced
22-Aug-2007, 04:37 PM #2
Hello Swanny. If you just want to do a simple login, a database may be over the top, that is, unless you want to have different logins for different users. In that case, I still think that a MySQL database is going overboard. Have you considered using the PHP functions fopen, fwrite, and fclose to make a simple text-file-database?
MMJ's Avatar
MMJ MMJ is online now
Distinguished Member with 3,250 posts.
 
Join Date: Oct 2006
23-Aug-2007, 01:10 AM #3
CyberGeek's Avatar
Member with 47 posts.
 
Join Date: Mar 2006
Location: London, Ontario
Experience: Advanced Developer
25-Aug-2007, 05:20 PM #4
Swanny,

The best way to provide a secure login is with PHP and MySQL. This is actually a quite easy and not too hard at all. Although, the more advanced you want it, the trickier it gets.

I would recommend searching google for an easy solution.

Here is a link to a quick step by step on how to create a login with PHP and SQL.
http://www.phpeasystep.com/workshopview.php?id=6
__________________
Best Regards:
Aaron McGowan (aka: CyberGeek)


CyberGeek's Software Solutions - Web Hosting Solutions - phpVideo Hosting Engine
Swanny86uk's Avatar
Computer Specs
Junior Member with 25 posts.
 
Join Date: Dec 2006
Experience: Intermediate
27-Aug-2007, 08:20 AM #5
Thanks !
Thanks for all the answers, looked at a few different sites for instructions and think I got the whole Login / Register thing done ! =) and I even learnt a little php while I was at it.

Thanks Again!

Swanny
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 08:08 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.