Jump to content

Query Synyax


jenniferG

Recommended Posts

We are tryng to add a sort [$SORT] clause  to these queries  and afterwards theydo not work. 

Syntax problem?

========================================================

$SORT='ORDER BY MFGR,CATGY_1';

$selectall="SELECT * FROM $tablename . $SORT";

$selectcat="SELECT * FROM $tablename WHERE CATGY_1 = '" . $CATGY_1 . "' . $SORT ";

$selectmfg="SELECT * FROM $tablename WHERE MFGR = '" . $MFGR . "' . $SORT";

$selectboth="SELECT * FROM $tablename WHERE CATGY_1 = '" . $CATGY_1 . "'

                AND MFGR = '" . $MFGR ."' .$SORT";

=========================================================

Thanks

Jennifer

 

Link to comment
https://forums.phpfreaks.com/topic/112488-query-synyax/
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.