Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17

Thread: new to table joins?

  1. #16
    Join Date
    Jun 2005
    Location
    coronado
    Posts
    76
    Also, I thought both primary keys should be autonumbers if im going to add both companies and activities with a form

  2. #17
    Join Date
    Apr 2005
    Location
    florida
    Posts
    89
    you can manupulate your php variables as you want ...

    I put a draft for you in this location: http://www.locatehomes.com/test/activities.php

    if you need the connection.php code:

    <?php
    class DB {
    function DB() {
    $this->host = "your_host";
    $this->db = "your_db"
    $this->user = "user_name";
    $this->pass = "your_password";
    $this->link = mysql_connect($this->host, $this->user, $this->pass);
    mysql_select_db($this->db);
    register_shutdown_function($this->close);
    }
    function query($query) {
    $result = mysql_query($query, $this->link);
    return $result;
    }
    function close() {
    mysql_close($this->link);
    }
    }
    ?>

Posting Permissions

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