Jump to content

FULL JOIN


arunpatal

Recommended Posts

Hi,

 

I have 2 tables

 

category (cat_id, cat_name)

AND

subcategory(sub_cat_id, sub_cat_name, category_id)

 

I am tring to run a simple full join statement.

<?php 

require("connect/connection.php"); 

$sql = mysql_query("

SELECT *
FROM $category
FULL JOIN $subcategory
ON $category.cat_id = $subcategory.category_id
") or die(mysql_error()); 


?>

And i get a error

 

Unknown column 'category.cat_id' in 'on clause'

Link to comment
https://forums.phpfreaks.com/topic/284548-full-join/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.