Jump to content

Recommended Posts

This select statement works fine:

SELECT make, colour, street, town, city, date FROM location, stick, report

WHERE report.rid = stick.sid

AND stick.missingLocation = location.lid

 

But I want to add another table,

this select statement breaks:

SELECT make, colour, street, town, city, date, image_url, image_width, image_height FROM location, stick, report, identification

WHERE report.rid = stick.sid

AND stick.missingLocation = location.lid

AND identification.stickID = stick.sid

 

Structure for table 'identification':

|------

|Field|Type|Null|Default

|------

|//**id**//|int(11)|No|

|image_url|char(220)|No|

|image_width|char(220)|No|

|image_height|char(220)|No|

|image_type|enum('jpeg', 'pjpeg', 'png', 'gif')|No|

|stickID|int(11)|Yes|NULL

 

Link to comment
https://forums.phpfreaks.com/topic/230419-select-is-breaking-somewhere/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.