![]() |
|
| |||||||
| Notices |
| mySQL & PHP Discussions, information and help with mySQL and PHP. |
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| 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"; |
|
#2
| |||
| |||
| 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 |
|
#3
| ||||
| ||||
| 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! |
|
#4
| ||||
| ||||
| 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! |
|
#7
| |||
| |||
| 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? |
|
#8
| ||||
| ||||
| 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! |
|
#9
| |||
| |||
| 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 |
|
#10
| ||||
| ||||
| 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! |
|
#12
| ||||
| ||||
| 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! |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |