I added it to my php, but get an error when going to the page. Not sure if I added it correctly.
Here is the portion of the php code:
//If POST, process form
if( isset($_POST['address']) && $_POST['address'] != ""){
//verify package is valid
$sql = sprintf("select * from accounting where id = %s and active = 'Yes' and mid = %s", intval($_POST['cp']), intval($member['id']));
$result = $mysql->exSql($sql) or die($mysql->debugPrint());
if(mysql_num_rows($result)==0) die("<script>alert('Invalid credit package!'); history.back();</script>");
$packageRow = mysql_fetch_assoc($result);
//proceed to add property
$node = new sqlNode();
$node->table = "items";
$node->push("text","mls", $_POST['mls']);
$node->push("int", "cid", $_POST['cid']); //property type
$node->push("text", "title", $_POST['title']);
$node->push("double", "price", $_POST['price']);
$node->push("defined", "pdate", "NOW()"); //publish date
$node->push("text","sold", "No"); //sold=no, default
$node->push("text","description",$_POST['description']);
$node->push("text","address", $_POST['address']);
$node->push("text","city", $_POST['city']);
$node->push("text","state", $_POST['state']);
$node->push("text","zip", $_POST['zipcode']);
$node->push("text","featured","No"); //featured=no, default
$node->push("text","active", "Yes"); //active=yes, default
$node->push("int","bed", $_POST['bed']);
$node->push("text","bath", $_POST['bath']);
$node->push("text","subdiv", $_POST['subdivision']);
$node->push("text","schoold", $_POST['schooldistrict']);
$node->push("text","year",$_POST['year']);
$node->push("double","lot_size", $_POST['lotsize']);
$node->push("double","sqft", $_POST['sqft']);
$node->push("text","lat", $_POST['latitude']);
$node->push("text","long", $_POST['longitude']);
$node->push("text","sellerTitle", $_POST['sellerTitle']);
$node->push("text","sellerName",$_POST['sellerName']);
$node->push("text","sellerPhone",$_POST['sellerPhone']);
$node->push("text","sellerEmail",$_POST['sellerEmail']);
$node->push("int","mid",$member['id']);
$node->push("text","Notes", $_POST['notes']);
$node->push("defined","expires", sprintf("DATE_ADD(NOW(), INTERVAL %s DAY)", $packageRow['days']));
$node->push("int","styleID", $_POST['styleID']);
$node->push("text","garage",$_POST['garage']);
$node->push("text","levels",$_POST['levels']);
$node->push("text","testimonial", $_POST['testimonial']);
$node->push("text","countyID",$_POST['county']);
$node->push("text","sale_price",$_POST['salePrice']);
$node->push("int","photoLimit",$packageRow['photoLimit']);
$node->push("text","vlink",$_POST['vlink']);
[B]if( isset($_POST['www']) && !empty($_POST['www']))
$www = '<a href="' . $_POST['www'] . '"> Presenter's Website</a>';
else
$www = ''; [/B]
//insert property
$result = $mysql->insert($node) or die($mysql->debugPrint());
$itemId = mysql_insert_id();
//update credit as used (sending query after property just in case insert property fails)
$sql = sprintf("update accounting set active = 'No', item='%s' where id = %s", intval($itemId), intval($packageRow['id']));
$result = $mysql->exSql($sql) or die($mysql->debugPrint());
//redirect
@header('Location:myproperties.php?nomap=1');
die("<script>window.location='myproperties.php?nomap=1';</script>"); //js redirect backup
}//End Process Post Form