Windows MySQL client

2001-11-04 Thread Matthew Fincham

Hello

I am trying to get a mysql client working in windows, and have a few
questions I would like to ask. My environment is this: I am using the
Borland command-line tools, version 5.5, and am currently running Windows
98, but would obviously like the client to work on all(!!) flavours of
Windows.

As far as I understand, I need the mysql client library to link into my
executable, and I need a set of header files so that the  object files can
be compiled. So far I have downloaded the 3.32.36 Borland mysqlclient.lib.
Unfortunately, this did not include any of the header files. Do you know
where I can find these? To replace the header files, I used the one that
come in the 3.23.39 windows zip (!!) and everything seemed to compile fine.
When it came to the link stage, however, there were a couple of unresolved
references, that all seemed to be concerned with threads. Is there another
library that I need to link in?

So I guess I have two questions:
* Where can I find the 3.23.36 header files, or alternatively (and
preferably) is there a 3.23.39 Borland client library available?
* How do I deal with the unresolved references to threading functions?

Thank you in advance for any answers to these questions.
Matthew Fincham



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




mysql_insert_id

2001-10-01 Thread Matthew Fincham

Hello

Firstly, this is my first query, so I can only hope I have sent it to the
correct list!

I am using the C API for MySQL, and using the mysql_insert_id() function to
get the last id assigned in an AUTO INCREMENT column. Orignially I was using
3.22.32 and everything worked fine. Upon upgrading to 3.23.35 the call to
mysql_insert_id(MYSQL*) returned the same value for every call. Each time a
new connection is made, this value seems to increase (e.g it will be 14,
then make a new connection, then it is 15 for that session...)

I am sure I am reading the documenation correctly, but can't seem to find
what is wrong. Any help with this problem (or my reading ability!) would be
greatly appreciated.

Thank you
Matthew Fincham


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php