jtwoody Posted May 18, 2008 Share Posted May 18, 2008 Hope someone can help, I have this line: $sql="select nBusId $ftchflds from iscriptseitbl_product where nUserId=".$_SESSION["guserid"]; which works (although the quote marks baffle me a bit) I need to add ORDER BY Business_Name But no combination of quotes and brackets is working. Cheers Link to comment https://forums.phpfreaks.com/topic/106239-solved-problem-adding-order-by/ Share on other sites More sharing options...
Symmetry Posted May 19, 2008 Share Posted May 19, 2008 try $sql="select `nBusId` $ftchflds from `iscriptseitbl_product` where `nUserId`='{$_SESSION['guserid']}' ORDER BY `Business_Name`"; Link to comment https://forums.phpfreaks.com/topic/106239-solved-problem-adding-order-by/#findComment-544512 Share on other sites More sharing options...
jtwoody Posted May 19, 2008 Author Share Posted May 19, 2008 Will you marry me? Awesome. Thanks Symmetry Link to comment https://forums.phpfreaks.com/topic/106239-solved-problem-adding-order-by/#findComment-544519 Share on other sites More sharing options...
Symmetry Posted May 19, 2008 Share Posted May 19, 2008 Np! Those { } brackets are really convenient sometimes. Link to comment https://forums.phpfreaks.com/topic/106239-solved-problem-adding-order-by/#findComment-544520 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.