Re: parse error newbie :)

From: Date: Fri, 28 Sep 2001 15:18:41 +0000
Subject: Re: parse error newbie :)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-69178@lists.php.net to get a copy of this message
> $sybase_query="INSERT into program VALUES(",'$add')"; Your quotes aren't in the right place. Try, $sysbase_query = "INSERT into program VALUES (, '$add')"; -- Justin Garrett "Caleb Carvalho" <havanero@hotmail.com> wrote in message news:F59h6BYVKBLEBwywzWE0000d9c7@hotmail.com... > 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: > > file://if txt field wasn't blank enter data > if ($add) > { > file://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 ÕE^‚M- > jù:ÚîÍîŒ6http://explorer.msn.com/intl.asp >

« previous php.general (#69178) next »