Solved

Parsing Error

Posted on 2003-11-05
1
142 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 250 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

920 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now