Re: parse error newbie :)
| From: | Philip Olson | Date: | Fri, 28 Sep 2001 15:55:42 +0000 |
| Subject: | Re: parse error newbie :) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69187@lists.php.net to get a copy of this message | ||
looks like you want '' as your first value, as opposed to " and jic, the
following will create a parse error too :
echo "foo"bar";
these won't :
echo 'foo"bar';
echo "foo\"bar";
silly typos :)
regards,
Philip Olson
On Fri, 28 Sep 2001, Caleb Carvalho wrote:
> Hi guys,
>
> I am trying to add data to table called program
> am getting parse error line 14 which is this one $sybase_query="INSERT into
> program VALUES(",'$add')";
>
> what am i doing wrong?
> the full code is:
>
> //if txt field wasn't blank enter data
> if ($add)
> {
> //insert txt to db
> $sybase_query="INSERT into program VALUES(",'$add')";
> $result=sybase_query($sybase_query);
>
>
>
> Caleb Carvalho
> Application Engineer
> LoadRunner/APM
> -----------------------------------------------------------------------------------------
> Enterprise Testing and Performance Management Solutions
> -----------------------------------------------------------------------------------------
> Mercury Interactive
> 410 Frimley Business Park
> Frimley, Surrey. GU16 7ST
> United Kingdom
> Telephone : +44 (0)1276 808300
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>