Problems with ODBC

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
brandon
Forum Newbie
Posts: 6
Joined: Fri May 10, 2002 10:06 am

Problems with ODBC

Post by brandon »

[removed]
Last edited by brandon on Tue Jul 14, 2015 4:36 pm, edited 1 time in total.
Matt Wade
Forum Newbie
Posts: 12
Joined: Sat May 04, 2002 7:47 pm

Post by Matt Wade »

Looks like you might have a permissions error with the user you are trying to connect with. That use doesn't have rights to lock the database for its use. Check this microsoft kb article:

http://support.microsoft.com/default.as ... US;q174943
brandon
Forum Newbie
Posts: 6
Joined: Fri May 10, 2002 10:06 am

Post by brandon »

[removed]
Last edited by brandon on Tue Jul 14, 2015 4:36 pm, edited 1 time in total.
User avatar
mikeq
Forum Regular
Posts: 512
Joined: Fri May 03, 2002 3:33 am
Location: Edinburgh, Scotland

Post by mikeq »

I am going to make an assumption that ID is a counter type field.

$query = "INSERT INTO guestbook (date, name, message, ip) VALUES ('$date', '$name', '$message', '$ip')";

leave out the field id.

Mike
Post Reply