OK, so i have managed to get this kinda working to an extent where in admin you can see that x category has x number of products, but when you open the category in admin, it doesn't show the products.
I know im getting closer, but I think I need a little help from here. Is there another entry to the database needed to make the products show on the website?
Here is where i am at so far:
Code:
<?php
$dbhost = "localhost";
$dbname = "xxxxxxx";
$dbuser = "xxxxxxxx";
$dbpass = "xxxxxxxx";
mysql_connect ($dbhost, $dbuser, $dbpass)or die("Could not connect: ".mysql_error());
mysql_select_db($dbname) or die(mysql_error());
$name=$_POST['name'];
$email=$_POST['email'];
$telephone=$_POST['telephone'];
$address=$_POST['address'];
$size=$_POST['size'];
$material=$_POST['material'];
$handrail=$_POST['handrail'];
$description=$_POST['description'];
$timeframe=$_POST['timeframe'];
$budget=$_POST['budget'];
$termsagree=$_POST['termsagree'];
$date= date("F j, Y");
$model = time();
$processed=$POST['processed'];
$county=$POST['Dublin']='1';
$county=$POST['Roscommon']='2';
$county=$POST['Galway']='3';
$county=$POST['Westmeath']='4';
$query = "INSERT INTO zen_products (products_id, products_model, products_quantity, products_image, products_date_added, products_status, master_categories_id, products_price, manufacturers_id) VALUES ('$model', '$model','3','product.jpg', NOW(), '1','1', '4', '0')";
//$query = "INSERT INTO zen_products_description (products_id, language_id, products_name, products_description) VALUES ('$model', '1', 'Decking Quote Request', '$description')";
//$query = "INSERT INTO zen_products_to_categories (categories_id) VALUES ('$county')";
mysql_query($query) or die(mysql_error());
mysql_close();
?>
<?php
mysql_connect ($dbhost, $dbuser, $dbpass)or die("Could not connect: ".mysql_error());
mysql_select_db($dbname) or die(mysql_error());
$query = "INSERT INTO zen_products_to_categories (products_id, categories_id) VALUES ('$model', '$county')";
//$query = "INSERT INTO zen_products_description (products_id, language_id, products_name, products_description) VALUES ('$model', '1', 'Decking Quote Request', '$description')";
//$query = "INSERT INTO zen_products_to_categories (categories_id) VALUES ('$county')";
mysql_query($query) or die(mysql_error());
mysql_close();
?>
I really could use a few pointers here 
Bookmarks