How to install social socialswapper and setup my sql please help me

Discussion in 'Databases' started by shilpam.clk, Aug 4, 2013.

  1. #1
    this my php config code

    <?php
    error_reporting(E_ALL);
    ini_set('display_errors', '1');
    
    $host        =    "localhost"; // your mysql server address
    $user        =    "MYSQL USER"; // your mysql username
    $pass        =    "MYSQL PASS"; // your mysql password
    $tablename    =    "MYSQL TABLE"; // your mysql table
    
    session_start();
    $data = null;
    if(!(@mysql_connect("$host","$user","$pass") && @mysql_select_db("$tablename"))) {
        ?>
        <html>
        MSQL ERROR
        <?
        exit;
    }
    
    include_once 'functions.php';
    require_once "includes/pluggable.php";
    foreach( glob("plugins/*/index.php")  as $plugin) { 
      require_once($plugin); 
    } 
    
    hook_action('initialize');
    
    $site = mysql_fetch_object(mysql_query("SELECT * FROM settings"));
    ?>
    Code (markup):


    When set all details i cant get installation setup

    always showing "MSQL ERROR" waht i do to install it properly please help me if know that

    if have any video tutorial about please sent me
     
    shilpam.clk, Aug 4, 2013 IP
  2. Flatliner86

    Flatliner86 Well-Known Member

    Messages:
    186
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    118
    #2
    I guess you filled in the mysq Details like username, Password and database, right? Also it Looks like you already Need to have a table to be created in your database.
    Do you have this also done?
     
    Flatliner86, Sep 2, 2013 IP