> <?
>
> $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 [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to