Hello, I am at the moment trying to delete a LEFT OUTER JOIN i created for a CMS website on PHP my LEFT OUTER JOIN looks like this:
'$sqlQuery = "SELECT filename FROM phpland LEFT OUTER JOIN
images ON phpland.image_id = images.id WHERE phpland.id = '$pageid' ";
In this case phpland and images are the name of my tables and the $pageid is the id I'm passing to it, yet it seems to work no problem but when I attempt to delete it I'm trying:
'DELETE filename from phpland AS filename LEFT OUTER JOIN images
ON phpland.image_id = images.id WHERE phpland.id = '$pid' "
Same situation Im passing the ID and I'm even echoing the ID on PHP to make sure is the ID I wish to delete but it tells me the ID is ambiguos, I'm not sure what I am doing wrong the primary Key on the table images.id is a foreign key on phpland as image_id
I do hope this was not confusing for anyone, any type of help is highly apprecciated.
:eek:
'$sqlQuery = "SELECT filename FROM phpland LEFT OUTER JOIN
images ON phpland.image_id = images.id WHERE phpland.id = '$pageid' ";
In this case phpland and images are the name of my tables and the $pageid is the id I'm passing to it, yet it seems to work no problem but when I attempt to delete it I'm trying:
'DELETE filename from phpland AS filename LEFT OUTER JOIN images
ON phpland.image_id = images.id WHERE phpland.id = '$pid' "
Same situation Im passing the ID and I'm even echoing the ID on PHP to make sure is the ID I wish to delete but it tells me the ID is ambiguos, I'm not sure what I am doing wrong the primary Key on the table images.id is a foreign key on phpland as image_id
I do hope this was not confusing for anyone, any type of help is highly apprecciated.
:eek: