+ Reply to Thread
Results 1 to 13 of 13

Thread: Need Quick PHP for MySQL Help
      
   

  1. #1
    CPMatt is offline Corporal
    Join Date
    Apr 2008
    Location
    Ohio
    Posts
    15

    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";

  2. #2
    CPMatt is offline Corporal
    Join Date
    Apr 2008
    Location
    Ohio
    Posts
    15

    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

  3. #3
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    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!


  4. #4
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    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!


  5. #5
    CPMatt is offline Corporal
    Join Date
    Apr 2008
    Location
    Ohio
    Posts
    15

    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.

  6. #6
    CPMatt is offline Corporal
    Join Date
    Apr 2008
    Location
    Ohio
    Posts
    15

    Default Re: Need Quick PHP for MySQL Help

    Thanks again Naval---I will try to get it all set up now.

  7. #7
    CPMatt is offline Corporal
    Join Date
    Apr 2008
    Location
    Ohio
    Posts
    15

    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?

  8. #8
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    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!


  9. #9
    CPMatt is offline Corporal
    Join Date
    Apr 2008
    Location
    Ohio
    Posts
    15

    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 10:07 PM. Reason: url incorrect

  10. #10
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    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!


  11. #11
    CPMatt is offline Corporal
    Join Date
    Apr 2008
    Location
    Ohio
    Posts
    15

    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?

  12. #12
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,061

    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!


  13. #13
    CPMatt is offline Corporal
    Join Date
    Apr 2008
    Location
    Ohio
    Posts
    15

    Default Re: Need Quick PHP for MySQL Help

    OK thanks for your help...very much appreciated!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

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