Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Server Side Programming > PHP Programming
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 09-18-2008, 05:20 AM
  #31
paul_norman_81
Guru (Moderator)
 
paul_norman_81's Avatar
 
Join Date: Nov 2005
Location: Preston, England, UK
Posts: 1,044
iTrader: (0)
paul_norman_81 is a jewel in the roughpaul_norman_81 is a jewel in the roughpaul_norman_81 is a jewel in the rough
In your mysqli_connect file you have the following options:

PHP Code:
// Set the database access information as constants:
DEFINE ('DB_USER''mysql_username');
DEFINE ('DB_PASSWORD''mysql_password');
DEFINE ('DB_HOST''mysql_host');
DEFINE ('DB_NAME''mysql_database'); 
These will be different offline to online, and are likely found online in your site control panel. Host will normally be an IP address and not localhost.

Hope this helps.
__________________
"Aut viam inveniam aut faciam" - I'll either find a way or make one

First Tutors | First Tutors: Music | First Tutors: I.T. | First Tutors: Languages | First Tutors: Business | First Tutors: Arts & Crafts | First Tutors: New Zealand
paul_norman_81 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-19-2008, 01:10 AM
  #32
jgray805
Veteran (Level 7)
 
Join Date: Jul 2008
Posts: 61
iTrader: (0)
jgray805 is an unknown quantity at this point
o yes, i know wut ur talkin about now.

ya i did change that..

i have the correct:
username,
password, and
database

BUT, The instructions say leave the host as localhost unless my web hosting providers says differnt.

i dont know if this will help, but, before i made any changes to try and accomplish what we are trying to do, i was able to login with out getting an error. So doesnt that mean that that part (mysql_connect) is correct?
jgray805 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-20-2008, 08:13 AM
  #33
paul_norman_81
Guru (Moderator)
 
paul_norman_81's Avatar
 
Join Date: Nov 2005
Location: Preston, England, UK
Posts: 1,044
iTrader: (0)
paul_norman_81 is a jewel in the roughpaul_norman_81 is a jewel in the roughpaul_norman_81 is a jewel in the rough
Hi, Sorry for the late reply, this time I'm in Germany working with some friends (and drinking Koelsh).

I'm not sure what has gone wrong here... If you could post the current copy of your code I'll look at it again. I don't think that I changed anything to do with your DB functions, but I'll happily help you diagnose the issue!
__________________
"Aut viam inveniam aut faciam" - I'll either find a way or make one

First Tutors | First Tutors: Music | First Tutors: I.T. | First Tutors: Languages | First Tutors: Business | First Tutors: Arts & Crafts | First Tutors: New Zealand
paul_norman_81 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-21-2008, 07:03 PM
  #34
jgray805
Veteran (Level 7)
 
Join Date: Jul 2008
Posts: 61
iTrader: (0)
jgray805 is an unknown quantity at this point
Ur lucky, u get to travel all around the world.. I want to do that.

Thank you for all the help you have given me, it is really appriciated.

Here is the current copies of my code for the login.
Attached Files
File Type: zip login.zip (41.4 KB, 9 views)
jgray805 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-25-2008, 09:03 AM
  #35
paul_norman_81
Guru (Moderator)
 
paul_norman_81's Avatar
 
Join Date: Nov 2005
Location: Preston, England, UK
Posts: 1,044
iTrader: (0)
paul_norman_81 is a jewel in the roughpaul_norman_81 is a jewel in the roughpaul_norman_81 is a jewel in the rough
Okay, I've just installed and run your scripts locally and apart from having session_start(); twice (just remove one) in your confic.inc.php file your scripts worked for me. I created a user, logged in and was redirected to the profile page.

Your database server (especially on shared hosts) is unlikely to be localhost, it will more likely be an IP address so I would suggest starting there and contact your host if need be to get the address. If you have PHPMyAdmin I think it tells you this IP on the very first page a few lines down on the left.

Good luck!
__________________
"Aut viam inveniam aut faciam" - I'll either find a way or make one

First Tutors | First Tutors: Music | First Tutors: I.T. | First Tutors: Languages | First Tutors: Business | First Tutors: Arts & Crafts | First Tutors: New Zealand
paul_norman_81 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-28-2008, 06:51 PM
  #36
jgray805
Veteran (Level 7)
 
Join Date: Jul 2008
Posts: 61
iTrader: (0)
jgray805 is an unknown quantity at this point
Im thinking i must have something in my databases set wrong... i must of changed something or something, because i just did a test:

I saved my entire login folder(as of today) deleted it, and tried uploading my old login file, before you began helping me, and when it used to work...
and even now when i try using the old script, it doesnt work....

that means i must have changed some code outside the login folder or in the database that is causing the error... correct?

any ideas what it is?
jgray805 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-29-2008, 04:31 AM
  #37
paul_norman_81
Guru (Moderator)
 
paul_norman_81's Avatar
 
Join Date: Nov 2005
Location: Preston, England, UK
Posts: 1,044
iTrader: (0)
paul_norman_81 is a jewel in the roughpaul_norman_81 is a jewel in the roughpaul_norman_81 is a jewel in the rough
I'd go with your mysql username or password... you should be able to check these in your control panel.
__________________
"Aut viam inveniam aut faciam" - I'll either find a way or make one

First Tutors | First Tutors: Music | First Tutors: I.T. | First Tutors: Languages | First Tutors: Business | First Tutors: Arts & Crafts | First Tutors: New Zealand
paul_norman_81 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-29-2008, 04:20 PM
  #38
jgray805
Veteran (Level 7)
 
Join Date: Jul 2008
Posts: 61
iTrader: (0)
jgray805 is an unknown quantity at this point
i just checked, and everything looks good....

hmmm....

o, and also, i talked to my web hosting service provider, and they told me leave it as localhost

they said its not supposed to be an IP address
jgray805 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-29-2008, 04:54 PM
  #39
jgray805
Veteran (Level 7)
 
Join Date: Jul 2008
Posts: 61
iTrader: (0)
jgray805 is an unknown quantity at this point
i have been thinking, and as much as i would really love to try and figure all this out, now that summer has ended, i am back in school with a heavy school load. I don't have much time anymore to try and figure all this stuff out.

Does anybody know of anybody that I can pay to have them help me design my website?

I mainly need a secure login page for my users.
jgray805 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-29-2008, 04:55 PM
  #40
jgray805
Veteran (Level 7)
 
Join Date: Jul 2008
Posts: 61
iTrader: (0)
jgray805 is an unknown quantity at this point
Paul, u have been of much help, and i dont know if you would want to be that person that helps me out. I can give u access to my control pannel and pay u to help me fix it up.
jgray805 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-29-2008, 06:45 PM
  #41
paul_norman_81
Guru (Moderator)
 
paul_norman_81's Avatar
 
Join Date: Nov 2005
Location: Preston, England, UK
Posts: 1,044
iTrader: (0)
paul_norman_81 is a jewel in the roughpaul_norman_81 is a jewel in the roughpaul_norman_81 is a jewel in the rough
If you want to PM me your details I'll take a look at what you have got and see if I can get it running for you.

I'm afraid I don't have the time to construct an entire social bookmarking site for you (see del.icio.us) and you don't even want to hear my hourly rate... But I will likely have a few hours spare on a train this Friday to neaten up / complete your code and put you on the right track...

You just want users to be able to register, list bookmarks, make notes and choose if their info is public / private... correct? Seems that I could whip that together in a basic way pretty quickly and you could then enhance it yourself or pay someone else to take it on. I'll aim to write it in a 'classic' style so that it should be easy to follow, learn from and extend.
__________________
"Aut viam inveniam aut faciam" - I'll either find a way or make one

First Tutors | First Tutors: Music | First Tutors: I.T. | First Tutors: Languages | First Tutors: Business | First Tutors: Arts & Crafts | First Tutors: New Zealand
paul_norman_81 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 11:12 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.