Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > mySQL & PHP

Notices

mySQL & PHP Discussions, information and help with mySQL and PHP.

Reply
 
LinkBack Thread Tools
  #1  
Old 05-03-2008, 01:38 PM
Corporal
 
Join Date: Apr 2008
Location: Ohio
Posts: 16
Default Need Quick PHP for MySQL Help

Below is code I am using for a social networking section of my site I need help changing code for //db access info! Someone please advise ASAP! I am pretty new to PHP and all of this as a whole--anything outside of bluevoda is tricky---this is my first database setup etc. Thanks-Matt

<?
//db access info
$sql_host='host';//host
$sql_user='user';//db user
$sql_pass='pass';//db pass
$sql_db='dbname';//db name

//path and url
$base_path="/Social1";//full path to script
$main_url="http://continentalprocessing.com";//url to the script
$cookie_url=".continentalprocessing.com";//the domain name of your website without http://www
$tribes_folder="groups";//folder for groups to be created

//mail addresses
$admin_mail="admin@continentalprocessing.com";//admin e-mail
$system_mail="admin@continentalprocessing.com";//system messages e-mail

//admin access info
$admin_login="admin";//login
$admin_password="admin";//password
//(note: please, use password without any meaning to prevent hackers attack)
/* Constant Variables */
$lines=10;
$lines10=10;
$lines15=15;
$lines25=25;
$lines50=50;
$lcoun=1;
/********************************/

$site_name="Social1";
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 05-03-2008, 02:02 PM
Corporal
 
Join Date: Apr 2008
Location: Ohio
Posts: 16
Default Re: Need Quick PHP for MySQL Help

Some ofthe other info in this script may be wrong too---I am very GREEN---just a novice and have just learned enough to get to this point by READING ALOT here. Any help here would be great.
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 05-03-2008, 02:46 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,035
Default Re: Need Quick PHP for MySQL Help

NEVER post here your database details!!! I changed them but you should better also change password in your database.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 05-03-2008, 02:53 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,035
Default Re: Need Quick PHP for MySQL Help

When you create a Database in your CP, you will see what your details are.

In example, if you create a database named "social", the actual database name will be: "cp_username_social".
If you create a user for the database, named "matt", the actual name of the user will be "cp_username_matt"

The password instead, will remain as you create it.

The host is "localhost"

After that, make sure that you ADD this user to the specific Database.

Take all these details and replace them in your script.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 05-03-2008, 03:47 PM
Corporal
 
Join Date: Apr 2008
Location: Ohio
Posts: 16
Default Re: Need Quick PHP for MySQL Help

Thanks Naval---The Database details are notmy actual details but just an example from the script I have.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 05-03-2008, 03:51 PM
Corporal
 
Join Date: Apr 2008
Location: Ohio
Posts: 16
Default Re: Need Quick PHP for MySQL Help

Thanks again Naval---I will try to get it all set up now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 05-03-2008, 05:20 PM
Corporal
 
Join Date: Apr 2008
Location: Ohio
Posts: 16
Default More PHP for MySQL Help

Any Advice on Path and URL for PHP script? specifically:

$base_path="/sample/12/test/mysite/MS";//full path to script
$main_url=http://test/MS;//url to the script
$cookie_url=".test";//the domain name of your website without http://www
$tribes_folder="groups";//folder for groups to be created

As I said before I am very green to PHP and database setup is the $base_path= using my DB Name as part of the path?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 05-03-2008, 05:30 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,035
Default Re: Need Quick PHP for MySQL Help

No.

The main url will be something like
$base_path="/Social1";
$main_url='http://yourdomain.com'

Replace "yourdomain.com" with your real domain name
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old 05-03-2008, 09:01 PM
Corporal
 
Join Date: Apr 2008
Location: Ohio
Posts: 16
Default Re: Need Quick PHP for MySQL Help

OK--still working on this---parts working now-- not sure where i am going wrong. Seems like it is not getting to my scripts or something? If you could go to www.continentalprocessing.com/Social1/processorspace and see if you have any guesses. I can't get to sign in, login etc. I will keep working on it.
Thank You.

Last edited by CPMatt; 05-03-2008 at 09:07 PM. Reason: url incorrect
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old 05-03-2008, 09:11 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,035
Default Re: Need Quick PHP for MySQL Help

Because you have loaded it in a subfolder: click on http://www.continentalprocessing.com...rocessorspace/
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old 05-03-2008, 10:34 PM
Corporal
 
Join Date: Apr 2008
Location: Ohio
Posts: 16
Default Re: Need Quick PHP for MySQL Help

Not sure what you mean--I cant get site to run properly from the subfolder?--because from there I cannot (when testing) sign-up or navigate any additional areas of the site?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old 05-03-2008, 10:57 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,035
Default Re: Need Quick PHP for MySQL Help

I believe that this has something to do with your settings or your installation. I can't know what the problem is, you need to look into the instructions provided by the author
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old 05-03-2008, 11:23 PM
Corporal
 
Join Date: Apr 2008
Location: Ohio
Posts: 16
Default Re: Need Quick PHP for MySQL Help

OK thanks for your help...very much appreciated!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 04:46 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2007 VodaHost.com - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54