 |
|
|
09-18-2008, 05:20 AM
|
|
#31
|
 |
|
Guru (Moderator)
Join Date: Nov 2005
Location: Preston, England, UK
Posts: 1,044
|
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.
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-19-2008, 01:10 AM
|
|
#32
|
 |
|
Veteran (Level 7)
Join Date: Jul 2008
Posts: 61
|
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?
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-20-2008, 08:13 AM
|
|
#33
|
 |
|
Guru (Moderator)
Join Date: Nov 2005
Location: Preston, England, UK
Posts: 1,044
|
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!
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-21-2008, 07:03 PM
|
|
#34
|
 |
|
Veteran (Level 7)
Join Date: Jul 2008
Posts: 61
|
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.
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-25-2008, 09:03 AM
|
|
#35
|
 |
|
Guru (Moderator)
Join Date: Nov 2005
Location: Preston, England, UK
Posts: 1,044
|
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!
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-28-2008, 06:51 PM
|
|
#36
|
 |
|
Veteran (Level 7)
Join Date: Jul 2008
Posts: 61
|
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?
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-29-2008, 04:31 AM
|
|
#37
|
 |
|
Guru (Moderator)
Join Date: Nov 2005
Location: Preston, England, UK
Posts: 1,044
|
I'd go with your mysql username or password... you should be able to check these in your control panel.
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-29-2008, 04:20 PM
|
|
#38
|
 |
|
Veteran (Level 7)
Join Date: Jul 2008
Posts: 61
|
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
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-29-2008, 04:54 PM
|
|
#39
|
 |
|
Veteran (Level 7)
Join Date: Jul 2008
Posts: 61
|
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.
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-29-2008, 04:55 PM
|
|
#40
|
 |
|
Veteran (Level 7)
Join Date: Jul 2008
Posts: 61
|
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.
|
|
Add to del.icio.us
Can you digg it?
|
|
|
09-29-2008, 06:45 PM
|
|
#41
|
 |
|
Guru (Moderator)
Join Date: Nov 2005
Location: Preston, England, UK
Posts: 1,044
|
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.
|
|
Add to del.icio.us
Can you digg it?
|
|
 |
|
|
KEEP TABS |
|
SPONSORS |
| |
|
| |
|
|
| |
|