Re: parse error newbie :)

From: Date: Fri, 28 Sep 2001 14:25:05 +0000
Subject: Re: parse error newbie :)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-69177@lists.php.net to get a copy of this message
Caleb, You have a syntax problem. Count the double quotes in the line: >>$sybase_query="INSERT into program VALUES(",'$add')"; I recon your query is ending prematurely like this: >>$sybase_query="INSERT into program VALUES(" HTH George ----- Original Message ----- From: "Caleb Carvalho" <havanero@hotmail.com> To: <php-general@lists.php.net> Sent: Friday, September 28, 2001 3:17 PM Subject: [PHP] parse error newbie :) > 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 _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

« previous php.general (#69177) next »