Announcement

Collapse
No announcement yet.

Need Quick PHP for MySQL Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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";
    sigpicCPMatt
    www.PatentsProfiled.com
    www.ContinentalProcessing.com

  • #2
    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
    sigpicCPMatt
    www.PatentsProfiled.com
    www.ContinentalProcessing.com

    Comment


    • #3
      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!

      Comment


      • #4
        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!

        Comment


        • #5
          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.
          sigpicCPMatt
          www.PatentsProfiled.com
          www.ContinentalProcessing.com

          Comment


          • #6
            Re: Need Quick PHP for MySQL Help

            Thanks again Naval---I will try to get it all set up now.
            sigpicCPMatt
            www.PatentsProfiled.com
            www.ContinentalProcessing.com

            Comment


            • #7
              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?
              sigpicCPMatt
              www.PatentsProfiled.com
              www.ContinentalProcessing.com

              Comment


              • #8
                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!

                Comment


                • #9
                  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, 09:07 PM. Reason: url incorrect
                  sigpicCPMatt
                  www.PatentsProfiled.com
                  www.ContinentalProcessing.com

                  Comment


                  • #10
                    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!

                    Comment


                    • #11
                      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?
                      sigpicCPMatt
                      www.PatentsProfiled.com
                      www.ContinentalProcessing.com

                      Comment


                      • #12
                        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!

                        Comment


                        • #13
                          Re: Need Quick PHP for MySQL Help

                          OK thanks for your help...very much appreciated!
                          sigpicCPMatt
                          www.PatentsProfiled.com
                          www.ContinentalProcessing.com

                          Comment

                          Working...
                          X