Re: insert into problems.

From: Date: Wed, 05 Sep 2001 06:33:12 +0000
Subject: Re: insert into problems.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65995@lists.php.net to get a copy of this message
> <? > > $text = "yadayada"; > > $date= "today..."; > > $connectionstring = odbc_connect("MYSKODB", "Sa", ""); > #> odbc_do($connectionstring, "INSERT INTO lappar (text,datum) VALUES #> ('$text','$date')"); $query = "INSERT INTO lappar (text,datum) VALUES('$text','$date')"; echo $query, "<BR>\n"; odbc_do($connectionstring, $query) or die(odbc_errormsg()); My first guess is that TEXT is a data type, and should be a reserved word, so there shouldn't be a column named TEXT. > > odbc_close($connectionstring); > > ?> > > /martin > > > > > -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#65995) next »