Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Parsing Error

Posted on 2003-11-05
1
Medium Priority
?
150 Views
Last Modified: 2006-11-17
Could someone tell me what is wrong with this line. It gives me a parsing error.      


$qry = 'SELECT DISTINCT L1Code, L1Desc, L1Image, L1URL FROM '.$opts['tb']. .$opts['tb1']. ' WHERE Status = "A" ORDER BY L1Desc';

Thanks

Rafael
0
Comment
Question by:rcleon
1 Comment
 
LVL 13

Accepted Solution

by:
lozloz earned 1000 total points
ID: 9689865
you only need one dot in between your 2 variables

$qry = 'SELECT DISTINCT L1Code, L1Desc, L1Image, L1URL FROM '.$opts['tb']. $opts['tb1']. ' WHERE Status = "A" ORDER BY L1Desc';

loz
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question