php3-list | 199903

Re: [PHP3] Netscape vs. ID - parse error From: Chad Cunningham (ccunning <email protected>)
Date: 03/20/99

Are you sure it's doing the same thing with each browser ( you're feeding
it the same input, etc)? And you're not using any javascript?

PHP does all it's work before any data is sent to the browser. At the time
your script executes, it doesn't know what browser is connected, nor does
it care. And browsers don't generate parse errors unless it's javascript.

On Sat, 20 Mar 1999, Brad Marsh wrote:

> Hi, all,
>
> I'm working on a script that generates an SQL statement (SELECT) with WHERE clauses and ORDER BY clauses...
>
> Funny thing is the script works fine when I access it with Netscape but gives a parse error when I access it with MSIE.
>
> The parse error is said to occur on the line containing the sql statement as a variable:
>
> Here's the line:
>
> $result = pg_Exec($dbConnect, $sqlQuery);
>
> Background info:
>
> $dbConnect = pg_pconnect("localhost", "", "", "", ""); // sensitive data removed
>
> $sqlQuery = "select model.brandcode, model.modelcode, model.itemserialnumber, model.holdreason, model.itemaccessories,model.itemmeter, tbllocations.city, tbllocations.province, model.itemconditionnotes, model.itemcost, model.itembaseprice1, model.itembsaeprice2, model.datein from model, tbllocations where model.itemlocationid = tbllocations.importlink and model.brandcode = '3M'";
>
> Can anyone tell me a) why PHP cares what browser the remote client is using, and b) if there's anything in that SQL statement that would trip me up?
>
> Thanks much in advance,
>
> Brad
>
> Brad Marsh, Computer Specialist
> Center for Evaluation and Research, LLC
> (530) 527-5537 or 527-5638 fax
> http://www.tchp.org/cer/
>
> --
> PHP 3 Mailing List http://www.php.net/
> To unsubscribe send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest list: php3-digest-subscribe <email protected>
> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
> List administrator: zeev-list-admin <email protected>
>
>
>

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>