403 error- search form/ database

Discussion in 'PHP' started by dzdrazil, May 10, 2008.

  1. #1
    I'm attempting to build my first html/php driven database search form. My server is wampserver2.0, and I built the database "contact" via phpmyadmin from the root user.

    below is my code (the password is different, of course)

    
    mysql_connect("localhost", "root", "password") or die(mysql_error());
    mysql_select_db("contact") or die(mysql_error());
    Code (markup):
    I'm getting 403: Forbidden. You don't have permission to access /sigmapiminnesota/inc/< on this server.

    keep in mind that i've got the search form page in sigmapiminnesota/inc because it's an include for the main template, and i've enabled vhost.

    also, the password setup in conf.inc.php for the mysql database is the same for phpmyadmin.

    have i made an error here in using localhost for the path, or is the error somewhere else?
     
    dzdrazil, May 10, 2008 IP
  2. Nalltaroh

    Nalltaroh Peon

    Messages:
    54
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    
    <?php
    chmod("/sigmapiminnesota/inc", 0644);
    ?>
    
    PHP:
    Maybe works.
     
    Nalltaroh, May 11, 2008 IP
  3. dzdrazil

    dzdrazil Peon

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    unless i put it in the wrong place, nope. still getting the 403
     
    dzdrazil, May 11, 2008 IP