Jump to content

[SOLVED] Is my query correct?


Shamrox

Recommended Posts

Is there anything wrong with the way this is written? I can't get any output to the page.

 

"SELECT `spec_registrar`.`registrarid`, `spec_client`.`name`,  `spec_contacts`.`lastname`, `spec_registrar`.`startdate`, `spec_registrar`.`orderdate`, `spec_registrar`.`vendorlistprice`, `spec_registrar`.`discount`, `spec_registrar`.`sale_price`, `spec_registrar`.`stb_discount`, `spec_registrar`.`cogs`, `spec_registrar`.`status` 
FROM `spec_registrar`  
INNER JOIN `spec_students` ON `spec_registrar`.`studentid` = `spec_students`.`studentid` 
INNER JOIN `spec_client` ON `spec_registrar`.`clientid` = `spec_client`.`clientid` 
INNER JOIN `spec_contacts` ON `spec_students`.`contactid` = `spec_contacts`.`contactid` 
WHERE (`spec_registrar`.`stb_discount` = "0%" OR `spec_registrar`.`stb_discount` = "")";

Link to comment
https://forums.phpfreaks.com/topic/82234-solved-is-my-query-correct/
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.