webmailing list script

Discussion in 'PHP' started by jbzcc, Oct 26, 2008.

  1. #1
    Hi need help instaling Web Mailing List
    The code is one of the easiest i have ever seen but not sure why it will not install.

    Part of what i am to edit are:

    <?php
    mysql_connect("localhost","username","password") or die(mysql_error());
    mysql_select_db("newsletterdb");
    ?>


    I created sql user name & pw
    & edited it


    same with the other file i am to edit

    <?php
    session_start();
    if ($_SESSION['admin'] != 'yes')
    die("Only admins can view this page.");
    mysql_connect("localhost","username","password") or die(mysql_error());
    mysql_select_db("newsletterdb");
    ?>



    each time i try to create it by clicking the create.php it keeps saying the database already existed and when i delete it , it says users cannot connect to database.

    thanks
     
    jbzcc, Oct 26, 2008 IP
  2. caffeinefree

    caffeinefree Guest

    Messages:
    43
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It sounds like a permission issue. Though I can't be sure based on info you provided. You need to ensure
    admin acct has correct db create privileges. Also, the webuser mysql account should only have record
    insert privileges.
     
    caffeinefree, Oct 26, 2008 IP