-
Also, I thought both primary keys should be autonumbers if im going to add both companies and activities with a form
-
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
-
Forum Rules
|
|